Compare commits
29 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e6bd69d880 | |||
| 87e5204d85 | |||
| 6c95ed3ebb | |||
| 2520010340 | |||
| 87b14accac | |||
| 4d42d58126 | |||
| 06bc35f26d | |||
| 826a612d9d | |||
| d3a3b12e37 | |||
| 79b26ddfda | |||
| b8961fb47d | |||
| 4851f745d8 | |||
| 59b5cfb47c | |||
| a8364f21ca | |||
| f135c1646f | |||
| 7a1b0541c2 | |||
| 6c5f61997d | |||
| 763253693c | |||
| b6f4bb7955 | |||
| 74d65a0d75 | |||
| 85bd12778a | |||
| d9565448b9 | |||
| af2655f9e2 | |||
| 6d0684610e | |||
| 17c3a3189f | |||
| 18d1ce711d | |||
| cbdb42f333 | |||
| b44775e3e5 | |||
| 1444912326 |
@@ -0,0 +1,92 @@
|
|||||||
|
# CLAUDE.md
|
||||||
|
|
||||||
|
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
||||||
|
|
||||||
|
## Commands
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Apply configuration (switch/boot/test)
|
||||||
|
sudo nixos-rebuild switch --flake '.#jupiter'
|
||||||
|
sudo nixos-rebuild switch --flake '.#mibook'
|
||||||
|
|
||||||
|
# Build without switching (CI-style check)
|
||||||
|
nix build '.#nixosConfigurations.jupiter.config.system.build.toplevel'
|
||||||
|
|
||||||
|
# Update all flake inputs
|
||||||
|
nix flake update
|
||||||
|
|
||||||
|
# Format Nix files
|
||||||
|
nixfmt-rfc-style <file> # or: find . -name '*.nix' | xargs nixfmt-rfc-style
|
||||||
|
```
|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
This is a flake-parts NixOS configuration for two machines:
|
||||||
|
|
||||||
|
- **jupiter** — home server running media/automation services
|
||||||
|
- **mibook** — laptop running KDE desktop + development tools
|
||||||
|
|
||||||
|
### Module Loading Chain
|
||||||
|
|
||||||
|
```
|
||||||
|
flake.nix
|
||||||
|
└── machines/configuration.nix # flake-parts module; defines nixosConfigurations
|
||||||
|
├── machines/core/ # base modules applied to every machine
|
||||||
|
│ ├── core.nix # system packages, locale, timezone
|
||||||
|
│ ├── network.nix
|
||||||
|
│ ├── nix.nix
|
||||||
|
│ └── users.nix
|
||||||
|
├── modules/ # custom NixOS option modules (my.profiles.*, my.hardware.*, my.services.*)
|
||||||
|
│ ├── environments/ # per-service/app profiles
|
||||||
|
│ ├── hardware/ # hardware profiles (nvidia, bluetooth, sound, wifi)
|
||||||
|
│ └── services/ # infrastructure services (vpn, webserver)
|
||||||
|
└── machines/<name>/
|
||||||
|
├── configuration.nix # machine-specific NixOS settings
|
||||||
|
├── environments.nix # enables profiles via my.profiles.* / my.hardware.* options
|
||||||
|
├── disks.nix
|
||||||
|
└── hardware-configuration.nix
|
||||||
|
```
|
||||||
|
|
||||||
|
### Profile / Module Pattern
|
||||||
|
|
||||||
|
Every module under `modules/` follows the same structure:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let cfg = config.my.profiles.<name>; in
|
||||||
|
{
|
||||||
|
options.my.profiles.<name>.enable = lib.mkEnableOption "...";
|
||||||
|
config = lib.mkIf cfg.enable { ... };
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Namespaces in use:
|
||||||
|
- `my.profiles.*` — application/service profiles
|
||||||
|
- `my.hardware.*` — hardware profiles
|
||||||
|
- `my.services.*` — infrastructure services
|
||||||
|
|
||||||
|
Profiles are enabled per-machine in `machines/<name>/environments.nix`.
|
||||||
|
|
||||||
|
### Unstable Packages
|
||||||
|
|
||||||
|
`pkgs.unstable` is available everywhere via an overlay defined in `machines/configuration.nix`. Use it when a package isn't in the pinned stable channel (`nixpkgs/nixos-25.11`).
|
||||||
|
|
||||||
|
### Homepage Dashboard Integration
|
||||||
|
|
||||||
|
Modules that expose a web UI can self-register with the homepage dashboard by adding to `my.homepage.services`:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
my.homepage.services = [{
|
||||||
|
group = "Services";
|
||||||
|
name = "My Service";
|
||||||
|
description = "...";
|
||||||
|
href = "http://${hostName}:PORT";
|
||||||
|
icon = "si-iconname"; # optional
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Adding a New Service Module
|
||||||
|
|
||||||
|
1. Create `modules/environments/<name>/default.nix` following the profile pattern above.
|
||||||
|
2. Add `./environments/<name>` to `modules/environments/default.nix` (or the relevant `default.nix`).
|
||||||
|
3. Enable it in the target machine's `machines/<name>/environments.nix`.
|
||||||
@@ -0,0 +1,289 @@
|
|||||||
|
# DankMaterialShell (niri) Profile Implementation Plan
|
||||||
|
|
||||||
|
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||||||
|
|
||||||
|
**Goal:** Add a `my.profiles.dank` NixOS profile that runs DankMaterialShell (DMS) on the niri Wayland compositor as a login session parallel to KDE on mibook, backed by a new opt-in `my.profiles.home-manager` module.
|
||||||
|
|
||||||
|
**Architecture:** Three flake inputs (`home-manager`, `niri` = niri-flake, `dank` = DankMaterialShell) are added to `flake.nix`. A `my.profiles.home-manager` module unconditionally imports the home-manager NixOS module and, when enabled, sets global HM settings. A `my.profiles.dank` module enables `my.profiles.home-manager` as a dependency, turns on niri (system session) + the DMS nixosModule (daemons/packages), and configures `home-manager.users.finn` with the DMS + niri-flake HM modules for keybinds/spawn. mibook enables `dank`.
|
||||||
|
|
||||||
|
**Tech Stack:** Nix flakes, flake-parts, NixOS modules, home-manager (as NixOS module), niri-flake, DankMaterialShell flake, quickshell (from `pkgs.unstable`).
|
||||||
|
|
||||||
|
## Global Constraints
|
||||||
|
|
||||||
|
- Do **not** modify `machines/configuration.nix`. `inputs` and `self` are already threaded into every module via `_module.args`; consume them as module arguments.
|
||||||
|
- **Top-level `imports` must reference flake modules via `self.inputs.*`, not `inputs.*`.** `self` is a specialArg (available during `imports` resolution); `inputs` comes from `_module.args` (config-derived) and using it in an `imports` list causes infinite recursion. Inside the `config` body (including nested `home-manager.users.<name>.imports`), either `inputs` or `self.inputs` is fine.
|
||||||
|
- Base channel is pinned `nixpkgs/nixos-26.05`; `pkgs.unstable` overlay is available everywhere. quickshell must come from `pkgs.unstable.quickshell` (needs ≥ 0.3.0).
|
||||||
|
- home-manager scoped to user `finn` only; `home.stateVersion = "26.05"`.
|
||||||
|
- Follow the existing profile pattern exactly: `let cfg = config.my.profiles.<name>; in { options.my.profiles.<name>.enable = lib.mkEnableOption "..."; config = lib.mkIf cfg.enable { ... }; }`.
|
||||||
|
- Format every new/edited `.nix` file with `nixfmt-rfc-style` before committing.
|
||||||
|
- Commit messages end with the repo's trailer lines (Co-Authored-By + Claude-Session) as seen in recent history.
|
||||||
|
- KDE (`my.profiles.kde-desktop`) stays enabled on mibook; do not remove it.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Task 1: Add flake inputs
|
||||||
|
|
||||||
|
**Files:**
|
||||||
|
- Modify: `flake.nix:4-15` (the `inputs = { ... }` block)
|
||||||
|
|
||||||
|
**Interfaces:**
|
||||||
|
- Produces: flake inputs `inputs.home-manager`, `inputs.niri`, `inputs.dank`, reachable from any NixOS module (via the existing `_module.args.inputs = self.inputs`). Later tasks consume `inputs.home-manager.nixosModules.home-manager`, `inputs.niri.homeModules.niri`, `inputs.dank.nixosModules.dank-material-shell`, `inputs.dank.homeModules.dank-material-shell`, `inputs.dank.homeModules.niri`.
|
||||||
|
|
||||||
|
- [ ] **Step 1: Add the three inputs**
|
||||||
|
|
||||||
|
In `flake.nix`, inside the `inputs = { ... }` block, after the `nixos-generators` entry and before the closing `};`, add:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager/release-26.05";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
niri.url = "github:sodiboo/niri-flake";
|
||||||
|
dank.url = "github:AvengeMedia/DankMaterialShell";
|
||||||
|
```
|
||||||
|
|
||||||
|
- [ ] **Step 2: Resolve the lock file**
|
||||||
|
|
||||||
|
Run: `nix flake lock`
|
||||||
|
Expected: completes without error; `flake.lock` gains `home-manager`, `niri`, `niri-flake`-transitive, and `dank` (DankMaterialShell) nodes. If it reports a bad URL, re-check the `github:owner/repo` strings.
|
||||||
|
|
||||||
|
- [ ] **Step 3: Verify inputs expose the expected outputs**
|
||||||
|
|
||||||
|
Run: `nix eval --raw '.#nixosConfigurations.mibook.pkgs.system'` first to confirm the flake still evaluates (expected: `x86_64-linux`).
|
||||||
|
Then run: `nix flake show 'github:AvengeMedia/DankMaterialShell' --allow-import-from-derivation 2>/dev/null | grep -E 'dank-material-shell|nixosModules|homeModules'`
|
||||||
|
Expected: output lists `nixosModules.dank-material-shell` and `homeModules.dank-material-shell` and `homeModules.niri`. If the niri output name differs (e.g. `dankMaterialShell.niri`), note the actual name — Task 3 Step 1 must use whatever this shows.
|
||||||
|
|
||||||
|
- [ ] **Step 4: Format and commit**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nixfmt-rfc-style flake.nix
|
||||||
|
git add flake.nix flake.lock
|
||||||
|
git commit -m "chore: add home-manager, niri-flake, and DankMaterialShell flake inputs
|
||||||
|
|
||||||
|
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
||||||
|
Claude-Session: https://claude.ai/code/session_018Sv2QAunLcLo3tS1YsfLgN"
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Task 2: `my.profiles.home-manager` module
|
||||||
|
|
||||||
|
**Files:**
|
||||||
|
- Create: `modules/environments/home-manager/default.nix`
|
||||||
|
- Modify: `modules/environments/default.nix` (add `./home-manager` to `imports`)
|
||||||
|
|
||||||
|
**Interfaces:**
|
||||||
|
- Consumes: `inputs.home-manager.nixosModules.home-manager` (Task 1).
|
||||||
|
- Produces: option `my.profiles.home-manager.enable`. When enabled, sets `home-manager.useGlobalPkgs = true`, `home-manager.useUserPackages = true`, `home-manager.extraSpecialArgs = { inherit inputs self; }`. Also makes the `home-manager.users.<name>` option available (from the unconditional import) so Task 3 can populate `home-manager.users.finn`.
|
||||||
|
|
||||||
|
- [ ] **Step 1: Create the module**
|
||||||
|
|
||||||
|
Create `modules/environments/home-manager/default.nix`:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
self,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.profiles.home-manager;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ self.inputs.home-manager.nixosModules.home-manager ];
|
||||||
|
|
||||||
|
options.my.profiles.home-manager.enable =
|
||||||
|
lib.mkEnableOption "home-manager integration";
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.extraSpecialArgs = { inherit inputs self; };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
- [ ] **Step 2: Register the module**
|
||||||
|
|
||||||
|
In `modules/environments/default.nix`, add `./home-manager` to the `imports` list (place it after `./hyprland`):
|
||||||
|
|
||||||
|
```nix
|
||||||
|
./hyprland
|
||||||
|
./home-manager
|
||||||
|
```
|
||||||
|
|
||||||
|
- [ ] **Step 3: Verify it evaluates disabled (no behavior change)**
|
||||||
|
|
||||||
|
Run: `nix build '.#nixosConfigurations.mibook.config.system.build.toplevel' --dry-run`
|
||||||
|
Expected: evaluates and shows a build plan with no errors. Because `my.profiles.home-manager.enable` defaults to false, importing the HM module must not change the build outcome.
|
||||||
|
|
||||||
|
- [ ] **Step 4: Verify the option exists and defaults false**
|
||||||
|
|
||||||
|
Run: `nix eval '.#nixosConfigurations.mibook.config.my.profiles.home-manager.enable'`
|
||||||
|
Expected: `false`
|
||||||
|
|
||||||
|
- [ ] **Step 5: Format and commit**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nixfmt-rfc-style modules/environments/home-manager/default.nix modules/environments/default.nix
|
||||||
|
git add modules/environments/home-manager/default.nix modules/environments/default.nix
|
||||||
|
git commit -m "feat(home-manager): add opt-in my.profiles.home-manager module
|
||||||
|
|
||||||
|
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
||||||
|
Claude-Session: https://claude.ai/code/session_018Sv2QAunLcLo3tS1YsfLgN"
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Task 3: `my.profiles.dank` module
|
||||||
|
|
||||||
|
**Files:**
|
||||||
|
- Create: `modules/environments/dank/default.nix`
|
||||||
|
- Modify: `modules/environments/default.nix` (add `./dank` to `imports`)
|
||||||
|
|
||||||
|
**Interfaces:**
|
||||||
|
- Consumes: `my.profiles.home-manager.enable` (Task 2); `inputs.dank.nixosModules.dank-material-shell`, `inputs.dank.homeModules.dank-material-shell`, `inputs.dank.homeModules.niri`, `inputs.niri.homeModules.niri` (Task 1); `pkgs.unstable.quickshell`.
|
||||||
|
- Produces: option `my.profiles.dank.enable`.
|
||||||
|
|
||||||
|
- [ ] **Step 1: Create the module**
|
||||||
|
|
||||||
|
Create `modules/environments/dank/default.nix`. Use the exact `homeModules`/`nixosModules` output names confirmed in Task 1 Step 3 — the block below assumes `dank-material-shell` and `niri`:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
self,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.profiles.dank;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ self.inputs.dank.nixosModules.dank-material-shell ];
|
||||||
|
|
||||||
|
options.my.profiles.dank.enable = lib.mkEnableOption "DankMaterialShell on niri";
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
# Dependency: declarative user config comes from home-manager.
|
||||||
|
my.profiles.home-manager.enable = true;
|
||||||
|
|
||||||
|
# System side: niri Wayland session + DMS daemons/packages.
|
||||||
|
programs.niri.enable = true;
|
||||||
|
|
||||||
|
programs.dank-material-shell = {
|
||||||
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
|
quickshell.package = pkgs.unstable.quickshell;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Home side: DMS shell + niri spawn for finn (keybinds come via includes).
|
||||||
|
home-manager.users.finn = {
|
||||||
|
imports = [
|
||||||
|
inputs.niri.homeModules.niri
|
||||||
|
inputs.dank.homeModules.dank-material-shell
|
||||||
|
inputs.dank.homeModules.niri
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.dank-material-shell = {
|
||||||
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
|
quickshell.package = pkgs.unstable.quickshell;
|
||||||
|
# niri.enableKeybinds intentionally omitted: DMS's niri `includes.enable`
|
||||||
|
# (default true) already brings in the generated binds.kdl plus theming;
|
||||||
|
# setting enableKeybinds too triggers an upstream "not recommended" warning.
|
||||||
|
niri.enableSpawn = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.stateVersion = "26.05";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
- [ ] **Step 2: Register the module**
|
||||||
|
|
||||||
|
In `modules/environments/default.nix`, add `./dank` to the `imports` list (after `./home-manager`):
|
||||||
|
|
||||||
|
```nix
|
||||||
|
./home-manager
|
||||||
|
./dank
|
||||||
|
```
|
||||||
|
|
||||||
|
- [ ] **Step 3: Verify it evaluates disabled**
|
||||||
|
|
||||||
|
Run: `nix eval '.#nixosConfigurations.mibook.config.my.profiles.dank.enable'`
|
||||||
|
Expected: `false`
|
||||||
|
Run: `nix build '.#nixosConfigurations.mibook.config.system.build.toplevel' --dry-run`
|
||||||
|
Expected: evaluates without error (dank disabled → no behavior change yet).
|
||||||
|
|
||||||
|
- [ ] **Step 4: Format and commit**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nixfmt-rfc-style modules/environments/dank/default.nix modules/environments/default.nix
|
||||||
|
git add modules/environments/dank/default.nix modules/environments/default.nix
|
||||||
|
git commit -m "feat(dank): add DankMaterialShell (niri) profile
|
||||||
|
|
||||||
|
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
||||||
|
Claude-Session: https://claude.ai/code/session_018Sv2QAunLcLo3tS1YsfLgN"
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Task 4: Enable on mibook and build the full toplevel
|
||||||
|
|
||||||
|
**Files:**
|
||||||
|
- Modify: `machines/mibook/environments.nix:7-17` (the `my.profiles = { ... }` block)
|
||||||
|
|
||||||
|
**Interfaces:**
|
||||||
|
- Consumes: `my.profiles.dank.enable` (Task 3).
|
||||||
|
|
||||||
|
- [ ] **Step 1: Enable the profile**
|
||||||
|
|
||||||
|
In `machines/mibook/environments.nix`, inside the `my.profiles = { ... }` block, add:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
dank.enable = true;
|
||||||
|
```
|
||||||
|
|
||||||
|
- [ ] **Step 2: Build the full toplevel (the real test)**
|
||||||
|
|
||||||
|
Run: `nix build '.#nixosConfigurations.mibook.config.system.build.toplevel'`
|
||||||
|
Expected: builds successfully. This exercises the DMS package, quickshell from unstable, niri, and the home-manager generation for finn.
|
||||||
|
|
||||||
|
If it fails on a **quickshell/Qt6 version mismatch** (see spec risks): drop `quickshell.package = pkgs.unstable.quickshell;` from **both** the system and HM `programs.dank-material-shell` blocks in `modules/environments/dank/default.nix` and rebuild, letting DMS's module pick its own default quickshell. If it fails on an **unknown HM option** (e.g. `niri.enableKeybinds`), run `nix eval '.#nixosConfigurations.mibook.config.home-manager.users.finn.programs.dank-material-shell' --apply builtins.attrNames 2>&1 | head` to list the real option names and adjust. Re-run the build until it passes.
|
||||||
|
|
||||||
|
- [ ] **Step 3: Run flake check**
|
||||||
|
|
||||||
|
Run: `nix flake check`
|
||||||
|
Expected: passes (all nixosConfigurations evaluate). If `nix flake check` is slow or pulls DMS's own checks, `nix build '.#nixosConfigurations.mibook.config.system.build.toplevel'` from Step 2 passing is the authoritative gate.
|
||||||
|
|
||||||
|
- [ ] **Step 4: Format and commit**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nixfmt-rfc-style machines/mibook/environments.nix
|
||||||
|
git add machines/mibook/environments.nix modules/environments/dank/default.nix
|
||||||
|
git commit -m "feat(mibook): enable DankMaterialShell (niri) session
|
||||||
|
|
||||||
|
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
||||||
|
Claude-Session: https://claude.ai/code/session_018Sv2QAunLcLo3tS1YsfLgN"
|
||||||
|
```
|
||||||
|
|
||||||
|
- [ ] **Step 5: Manual acceptance (human, on hardware)**
|
||||||
|
|
||||||
|
Run: `sudo nixos-rebuild test --flake '.#mibook'`
|
||||||
|
Then log out, pick the **niri** session at SDDM, log in as finn.
|
||||||
|
Expected: DMS bar/shell appears; `Mod+Space` opens the launcher; `Mod+V` opens the clipboard; the KDE session is still selectable and works. Note this step cannot be automated — it requires the physical machine.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Notes for the implementer
|
||||||
|
|
||||||
|
- **Order matters:** Task 1 must land first (inputs must resolve before any module can import them). Tasks 2→3→4 are strictly sequential.
|
||||||
|
- **Output-name drift is the top risk.** The DMS flake has renamed outputs over time (there are deprecated aliases like `dankMaterialShell.niri`). Task 1 Step 3 pins down the real names against the locked revision; use those, not the names in this plan, if they differ.
|
||||||
|
- **No unit-test framework here.** Nix evaluation + a successful `toplevel` build *is* the test. Do not fabricate a test harness.
|
||||||
|
- Do not touch `machines/configuration.nix`, `machines/jupiter/*`, or the KDE profile.
|
||||||
@@ -0,0 +1,234 @@
|
|||||||
|
# DankMaterialShell (niri) Profile — Design
|
||||||
|
|
||||||
|
**Date:** 2026-07-24
|
||||||
|
**Branch:** `feat/dank-material-shell`
|
||||||
|
**Status:** Approved (brainstorming)
|
||||||
|
|
||||||
|
## Summary
|
||||||
|
|
||||||
|
Add a `my.profiles.dank` NixOS profile that provides a complete
|
||||||
|
[DankMaterialShell](https://danklinux.com) (DMS) desktop running on the
|
||||||
|
**niri** Wayland compositor, selectable at the SDDM login screen **alongside**
|
||||||
|
the existing KDE session on **mibook** (user `finn`).
|
||||||
|
|
||||||
|
DMS's keybind, spawn, and declarative-settings integration is delivered only
|
||||||
|
through home-manager modules, so this work also introduces home-manager into the
|
||||||
|
flake — as its own opt-in profile (`my.profiles.home-manager`) that the `dank`
|
||||||
|
profile enables as a dependency. Everything stays declarative inside the flake;
|
||||||
|
there is no separate home-manager entrypoint.
|
||||||
|
|
||||||
|
## Background / Research
|
||||||
|
|
||||||
|
DMS is a Quickshell-based Wayland desktop **shell** (bar, launcher, control
|
||||||
|
center, lock screen, notifications) — not a compositor. Its repository
|
||||||
|
(`github:AvengeMedia/DankMaterialShell`) ships a flake with:
|
||||||
|
|
||||||
|
- `nixosModules.dank-material-shell` — system side: installs the `dms-shell`
|
||||||
|
package + `quickshell`, a `dms` systemd **user** service, `dgop` (system
|
||||||
|
monitoring), matugen (dynamic theming), and enables polkit /
|
||||||
|
power-profiles-daemon / accounts-daemon / geoclue2. Configured via
|
||||||
|
`programs.dank-material-shell.*`.
|
||||||
|
- `homeModules.dank-material-shell` — home side: declarative
|
||||||
|
`~/.config/DankMaterialShell/settings.json`, the `dms` user service, plugin
|
||||||
|
management, and the `programs.quickshell` HM program.
|
||||||
|
- `homeModules.niri` — niri-specific integration: generates niri keybinds wired
|
||||||
|
to `dms ipc` (launcher, clipboard, notifications, media/brightness keys, power
|
||||||
|
menu, lock) and `spawn-at-startup` for `dms run`.
|
||||||
|
|
||||||
|
`homeModules.niri` builds on **niri-flake**'s home-manager API
|
||||||
|
(`programs.niri.settings`, `config.lib.niri.actions`); DMS does **not** bundle
|
||||||
|
niri-flake, so it must be added as its own input. quickshell ≥ 0.3.0 is
|
||||||
|
recommended and is available in nixos-unstable → use `pkgs.unstable.quickshell`.
|
||||||
|
|
||||||
|
### Key repo facts
|
||||||
|
|
||||||
|
- This repo is flake-parts based, pins `nixpkgs/nixos-26.05`, and exposes
|
||||||
|
`pkgs.unstable` via an overlay in `machines/configuration.nix`.
|
||||||
|
- `inputs` and `self` are already threaded into every NixOS module via
|
||||||
|
`_module.args` (set in `machines/configuration.nix`), so `modules/` files may
|
||||||
|
take `inputs` / `self` as arguments and `imports = [ inputs.<x>... ]`.
|
||||||
|
- The repo currently uses **no home-manager**; compositor profiles (e.g.
|
||||||
|
`hyprland`) install packages via `users.users.finn.packages`.
|
||||||
|
- mibook currently runs the KDE desktop (`my.profiles.kde-desktop`).
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
|
||||||
|
- **In:** mibook only; niri+DMS as a session parallel to KDE; home-manager
|
||||||
|
scoped to user `finn`; a reusable `my.profiles.home-manager` module.
|
||||||
|
- **Out:** enabling on jupiter (headless server); Dank Greeter as the login
|
||||||
|
manager (SDDM stays); declarative DMS `settings.json` content (DMS is
|
||||||
|
configured through its own GUI at runtime; the HM `settings` option remains
|
||||||
|
available for later use but is left empty); any change to `configuration.nix`.
|
||||||
|
|
||||||
|
## Design
|
||||||
|
|
||||||
|
### 1. New flake inputs (`flake.nix`)
|
||||||
|
|
||||||
|
```nix
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
niri.url = "github:sodiboo/niri-flake";
|
||||||
|
dank.url = "github:AvengeMedia/DankMaterialShell";
|
||||||
|
```
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
- `dank` tracks nixos-unstable internally (its own `nixpkgs`), which is expected
|
||||||
|
for the DMS package build.
|
||||||
|
- `niri-flake` provides both the compositor session (nixosModule) and the HM
|
||||||
|
`programs.niri.settings` API that DMS's niri module extends.
|
||||||
|
- `home-manager` follows the repo `nixpkgs` (nixos-26.05).
|
||||||
|
|
||||||
|
`machines/configuration.nix` is **not** modified — the existing
|
||||||
|
`_module.args.inputs = self.inputs` line already makes these inputs reachable
|
||||||
|
from any module.
|
||||||
|
|
||||||
|
### 2. Home-manager profile (`modules/environments/home-manager/default.nix`)
|
||||||
|
|
||||||
|
A new opt-in `my.profiles.home-manager` profile. Because module `imports` cannot
|
||||||
|
be gated on an option value, the home-manager NixOS module is imported
|
||||||
|
unconditionally (harmless — it only adds options and does nothing until
|
||||||
|
`home-manager.users.*` is populated); only the global settings are guarded by
|
||||||
|
`mkIf cfg.enable`:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{ config, lib, inputs, self, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.my.profiles.home-manager;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||||
|
|
||||||
|
options.my.profiles.home-manager.enable =
|
||||||
|
lib.mkEnableOption "home-manager integration";
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home-manager.useGlobalPkgs = true; # HM shares the system pkgs (+ unstable overlay)
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.extraSpecialArgs = { inherit inputs self; };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Registered by adding `./environments/home-manager` to
|
||||||
|
`modules/environments/default.nix`.
|
||||||
|
|
||||||
|
> Placement note: the profile lives under `modules/environments/` (where
|
||||||
|
> `my.profiles.*` modules live) to match the namespace, even though its function
|
||||||
|
> is infrastructural.
|
||||||
|
|
||||||
|
### 3. Dank profile (`modules/environments/dank/default.nix`)
|
||||||
|
|
||||||
|
Standard profile pattern; enables the home-manager profile as a dependency and
|
||||||
|
splits configuration between the system module (session + daemons) and the
|
||||||
|
home-manager module (keybinds / spawn / settings):
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.my.profiles.dank;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ inputs.dank.nixosModules.dank-material-shell ];
|
||||||
|
|
||||||
|
options.my.profiles.dank.enable = lib.mkEnableOption "DankMaterialShell on niri";
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
# dependency: pull in home-manager integration
|
||||||
|
my.profiles.home-manager.enable = true;
|
||||||
|
|
||||||
|
# --- system side: niri session + DMS daemons/packages ---
|
||||||
|
programs.niri.enable = true; # niri-flake nixosModule → Wayland session in SDDM
|
||||||
|
|
||||||
|
programs.dank-material-shell = {
|
||||||
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
|
quickshell.package = pkgs.unstable.quickshell; # >= 0.3.0 from unstable
|
||||||
|
# enableSystemMonitoring / enableVPN / enableDynamicTheming / enableAudioWavelength
|
||||||
|
# / enableCalendarEvents all default true — left on.
|
||||||
|
};
|
||||||
|
|
||||||
|
# --- home side: DMS + niri keybinds for finn ---
|
||||||
|
home-manager.users.finn = {
|
||||||
|
imports = [
|
||||||
|
inputs.niri.homeModules.niri
|
||||||
|
inputs.dank.homeModules.dank-material-shell
|
||||||
|
inputs.dank.homeModules.niri
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.dank-material-shell = {
|
||||||
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
|
quickshell.package = pkgs.unstable.quickshell;
|
||||||
|
niri.enableKeybinds = true; # Mod+Space launcher, Mod+V clipboard, media/brightness, power, lock…
|
||||||
|
niri.enableSpawn = true; # spawn `dms run` at niri startup
|
||||||
|
};
|
||||||
|
|
||||||
|
home.stateVersion = "26.05"; # match nixpkgs release; required by HM
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Registered by adding `./environments/dank` to
|
||||||
|
`modules/environments/default.nix`.
|
||||||
|
|
||||||
|
Open validation point (resolve during implementation, not a blocker):
|
||||||
|
- Confirm the exact HM output name for the niri integration
|
||||||
|
(`homeModules.niri` vs `homeModules.dankMaterialShell.niri`) and that
|
||||||
|
`programs.niri.enable` is the correct niri-flake nixosModule option; adjust to
|
||||||
|
match the pinned input revisions.
|
||||||
|
- Confirm whether `programs.dank-material-shell.quickshell.package` needs to be
|
||||||
|
set on both the system and HM sides or only one; set consistently.
|
||||||
|
|
||||||
|
### 4. Enable on mibook (`machines/mibook/environments.nix`)
|
||||||
|
|
||||||
|
Add to the `my.profiles` block:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
dank.enable = true;
|
||||||
|
```
|
||||||
|
|
||||||
|
KDE (`kde-desktop.enable = true`) stays; both sessions are offered by SDDM.
|
||||||
|
|
||||||
|
### 5. Documentation
|
||||||
|
|
||||||
|
No homepage dashboard entry (DMS is not a web service). CLAUDE.md is left
|
||||||
|
unchanged unless, after implementation, the home-manager pattern warrants a short
|
||||||
|
note — decided at the end, not up front (YAGNI).
|
||||||
|
|
||||||
|
## Data / control flow
|
||||||
|
|
||||||
|
1. `nixos-rebuild` builds the mibook toplevel; niri-flake registers a `niri`
|
||||||
|
Wayland session, DMS nixosModule installs packages + the `dms` user service
|
||||||
|
template, home-manager renders finn's niri config (with DMS keybinds) and DMS
|
||||||
|
config.
|
||||||
|
2. At login, SDDM lists **KDE** and **niri**. Selecting niri starts the
|
||||||
|
compositor; `spawn-at-startup` launches `dms run`, bringing up the DMS shell.
|
||||||
|
3. Keybinds invoke `dms ipc …` (launcher, clipboard, notifications, media,
|
||||||
|
brightness, power, lock). DMS is further configured via its own GUI, persisted
|
||||||
|
under `~/.config/DankMaterialShell/`.
|
||||||
|
|
||||||
|
## Risks / open questions
|
||||||
|
|
||||||
|
- **unstable/stable skew:** the repo pins nixos-26.05 while `dank` and
|
||||||
|
`niri-flake` track nixos-unstable, and quickshell comes from `pkgs.unstable`.
|
||||||
|
Qt6/quickshell version mismatch between the DMS package and the stable base is
|
||||||
|
the most likely failure. Mitigation: validate with a full toplevel build and,
|
||||||
|
if it fails, align quickshell/qt sourcing (e.g. take the DMS package's own
|
||||||
|
quickshell) before switching.
|
||||||
|
- **HM output/option names** may differ from the researched revision — pin the
|
||||||
|
inputs first, then read the resolved module options and adjust (see §3 open
|
||||||
|
validation point).
|
||||||
|
- **First HM activation** for finn: ensure `home.stateVersion` is set so the
|
||||||
|
build doesn't error.
|
||||||
|
|
||||||
|
## Verification
|
||||||
|
|
||||||
|
1. `nix flake check` succeeds.
|
||||||
|
2. `nix build '.#nixosConfigurations.mibook.config.system.build.toplevel'`
|
||||||
|
succeeds.
|
||||||
|
3. `sudo nixos-rebuild test --flake '.#mibook'`, then log into the **niri**
|
||||||
|
session: DMS bar appears, `Mod+Space` opens the launcher, KDE session still
|
||||||
|
works.
|
||||||
Generated
+263
-39
@@ -1,5 +1,41 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"dank": {
|
||||||
|
"inputs": {
|
||||||
|
"dank-qml-common": "dank-qml-common",
|
||||||
|
"flake-compat": "flake-compat",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1784830217,
|
||||||
|
"narHash": "sha256-6MvMw45RSORjINmFd3Lfz9VX9sH8+xTb5WNZiWIKbDw=",
|
||||||
|
"owner": "AvengeMedia",
|
||||||
|
"repo": "DankMaterialShell",
|
||||||
|
"rev": "8af71036cca800064f3fb22dd201109ade6c5ee9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "AvengeMedia",
|
||||||
|
"repo": "DankMaterialShell",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dank-qml-common": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1784647395,
|
||||||
|
"narHash": "sha256-kcLSJC8XBzmWoSBc90Zn81qrNsqWMkwQ1m/zZixOw30=",
|
||||||
|
"owner": "AvengeMedia",
|
||||||
|
"repo": "dank-qml-common",
|
||||||
|
"rev": "1919595f0dde4f5bf5ac0baa1902ff6d070971d5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "AvengeMedia",
|
||||||
|
"repo": "dank-qml-common",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -16,16 +52,32 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-compat_2": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1767039857,
|
||||||
|
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1777988971,
|
"lastModified": 1782949081,
|
||||||
"narHash": "sha256-qIoWPDs+0/8JecyYgE3gpKQxW/4bLW/gp45vow9ioCQ=",
|
"narHash": "sha256-vp6Y/Grm98ESt6ceOkWiHWyZRDV3J1RID4w+6NWK9yA=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "0678d8986be1661af6bb555f3489f2fdfc31f6ff",
|
"rev": "17c9d6cdfc60c64f4ee8d306f9bc0b4ccb51481e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -42,11 +94,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775087534,
|
"lastModified": 1782949081,
|
||||||
"narHash": "sha256-91qqW8lhL7TLwgQWijoGBbiD4t7/q75KTi8NxjVmSmA=",
|
"narHash": "sha256-vp6Y/Grm98ESt6ceOkWiHWyZRDV3J1RID4w+6NWK9yA=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "3107b77cd68437b9a76194f0f7f9c55f2329ca5b",
|
"rev": "17c9d6cdfc60c64f4ee8d306f9bc0b4ccb51481e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -60,20 +112,17 @@
|
|||||||
"flake-compat": [
|
"flake-compat": [
|
||||||
"nix"
|
"nix"
|
||||||
],
|
],
|
||||||
"gitignore": [
|
|
||||||
"nix"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nix",
|
"nix",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776796298,
|
"lastModified": 1783008725,
|
||||||
"narHash": "sha256-PcRvlWayisPSjd0UcRQbhG8Oqw78AcPE6x872cPRHN8=",
|
"narHash": "sha256-jGiy6+sxjNWXSjp25uoJuNfyH9zBK1PEDY0lVoL4ibQ=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "git-hooks.nix",
|
"repo": "git-hooks.nix",
|
||||||
"rev": "3cfd774b0a530725a077e17354fbdb87ea1c4aad",
|
"rev": "bca82caa46d5ec0f5d422c61fb1e30bc51313cbe",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -82,21 +131,98 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"home-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1784350909,
|
||||||
|
"narHash": "sha256-ZWyzLbS1yKUTeFJLmdVuWNnHttL333/ldJbEE+KzCrM=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "4ce190229c73d44536caa7072f6308fb2d8feeb3",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "release-26.05",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"niri": {
|
||||||
|
"inputs": {
|
||||||
|
"niri-stable": "niri-stable",
|
||||||
|
"niri-unstable": "niri-unstable",
|
||||||
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"nixpkgs-stable": "nixpkgs-stable",
|
||||||
|
"xwayland-satellite-stable": "xwayland-satellite-stable",
|
||||||
|
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1784874881,
|
||||||
|
"narHash": "sha256-u4jhSIf/Un0qZB+Cn3hTTaHSI20XeAxYbA5o4faqdJs=",
|
||||||
|
"owner": "sodiboo",
|
||||||
|
"repo": "niri-flake",
|
||||||
|
"rev": "ef7a2a3d719af46b906c22a3ebfb7d65627b2cd2",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "sodiboo",
|
||||||
|
"repo": "niri-flake",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"niri-stable": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1756556321,
|
||||||
|
"narHash": "sha256-RLD89dfjN0RVO86C/Mot0T7aduCygPGaYbog566F0Qo=",
|
||||||
|
"owner": "YaLTeR",
|
||||||
|
"repo": "niri",
|
||||||
|
"rev": "01be0e65f4eb91a9cd624ac0b76aaeab765c7294",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "YaLTeR",
|
||||||
|
"ref": "v25.08",
|
||||||
|
"repo": "niri",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"niri-unstable": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1784570726,
|
||||||
|
"narHash": "sha256-9EMn69JBcFWFgUM7f0VBAX+jBby5b9H3M59U75+5yI4=",
|
||||||
|
"owner": "YaLTeR",
|
||||||
|
"repo": "niri",
|
||||||
|
"rev": "7f26c3ee804fb6ed458ef7fb0e3c794f14e0b3bc",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "YaLTeR",
|
||||||
|
"repo": "niri",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix": {
|
"nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat_2",
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts_2",
|
||||||
"git-hooks-nix": "git-hooks-nix",
|
"git-hooks-nix": "git-hooks-nix",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"nixpkgs-23-11": "nixpkgs-23-11",
|
"nixpkgs-23-11": "nixpkgs-23-11",
|
||||||
"nixpkgs-regression": "nixpkgs-regression"
|
"nixpkgs-regression": "nixpkgs-regression"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1778249748,
|
"lastModified": 1784762557,
|
||||||
"narHash": "sha256-D+3kaW4NUUaiFTsEpmregtGZVniljBThg/O0JIjRL8k=",
|
"narHash": "sha256-R/r6jRnANV50c8F5Fz5+1Q1moab0IGWRk+cg5ME2nMY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nix",
|
"repo": "nix",
|
||||||
"rev": "616df97974fd29b79f83502f63854d6d471ee055",
|
"rev": "d10c84cd0cc0efdcb29cf2611caf5fbcd10fa071",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -142,12 +268,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs_4"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1778143761,
|
"lastModified": 1784723954,
|
||||||
"narHash": "sha256-lkesY6x2X2qxlqLM7CT2iM/0rP2JB7fruPN3h8POXmI=",
|
"narHash": "sha256-1CfD8ZUjCkTgjsneLZ/lxCHhgDfqxxE7/GX0MmsgiqA=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "3bcaa367d4c550d687a17ac792fd5cda214ee871",
|
"rev": "a017f5b72210026af5b3ac5949f08d94380a6fbd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -158,15 +287,18 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771903837,
|
"lastModified": 1783224372,
|
||||||
"narHash": "sha256-jEA8WggGKtMFeNeCKq3NK8cLEjJmG6/RLUElYYbBZ0E=",
|
"narHash": "sha256-8i/87eeoqiGE4yOTjwSA3Eh/ziJRQEmd/unYU+K27sk=",
|
||||||
"rev": "e764fc9a405871f1f6ca3d1394fb422e0a0c3951",
|
"owner": "nixos",
|
||||||
"type": "tarball",
|
"repo": "nixpkgs",
|
||||||
"url": "https://releases.nixos.org/nixos/25.11/nixos-25.11.6495.e764fc9a4058/nixexprs.tar.xz"
|
"rev": "d407951447dcd00442e97087bf374aad70c04cea",
|
||||||
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"owner": "nixos",
|
||||||
"url": "https://channels.nixos.org/nixos-25.11/nixexprs.tar.xz"
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-23-11": {
|
"nixpkgs-23-11": {
|
||||||
@@ -187,11 +319,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-lib": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1777168982,
|
"lastModified": 1782614948,
|
||||||
"narHash": "sha256-GOkGPcboWE9BmGCRMLX3worL4EMnsnG8MyKmXNeYuhQ=",
|
"narHash": "sha256-ePjCwr1sNm9NYUqywL7QfK3JnlS015msC+eBu2zKlp8=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs.lib",
|
"repo": "nixpkgs.lib",
|
||||||
"rev": "f5901329dade4a6ea039af1433fb087bd9c1fe14",
|
"rev": "db3f255737b94216eb71cce308e2912cf6bc2d7c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -216,15 +348,30 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1777954456,
|
"lastModified": 1782847189,
|
||||||
"narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=",
|
"narHash": "sha256-twXPFqFsrrY5r28Zh7Homgcp2gUMBgQ6WDS98Q/3xFI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1",
|
"rev": "b6018f87da91d19d0ab4cf979885689b469cdd41",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-25.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-unstable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1784796856,
|
||||||
|
"narHash": "sha256-vwxWgF+Gj276WznzGb1LxGsK/39HaQwgQXiU3EkC844=",
|
||||||
|
"rev": "e2587caef70cea85dd97d7daab492899902dbf5d",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1040357.e2587caef70c/nixexprs.tar.xz"
|
||||||
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"id": "nixpkgs",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixos-unstable",
|
||||||
@@ -233,28 +380,105 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1778003029,
|
"lastModified": 1784796856,
|
||||||
"narHash": "sha256-q/nkKLDtHIyLjZpKhWk3cSK5IYsFqtMd6UtXF3ddjgA=",
|
"narHash": "sha256-wWFrV5/Qbm+lyt5x20E/bSbfJiGKMo4RCxZV8cl/WZI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0c88e1f2bdb93d5999019e99cb0e61e1fe2af4c5",
|
"rev": "e2587caef70cea85dd97d7daab492899902dbf5d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1783148766,
|
||||||
|
"narHash": "sha256-H9+N+GFtsbVC8ZniHliChM7ndizxtqVZs6bnGOLM3WQ=",
|
||||||
|
"rev": "a50de1b7d8a586adc18d2395c19de7d6058e6030",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://releases.nixos.org/nixos/26.05/nixos-26.05.4193.a50de1b7d8a5/nixexprs.tar.xz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://channels.nixos.org/nixos-26.05/nixexprs.tar.xz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_4": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1767892417,
|
||||||
|
"narHash": "sha256-8bW3q88CEg2u4hSP66Vf4lpbLonHz7hqDNBMcCY7E9U=",
|
||||||
|
"rev": "3497aa5c9457a9d88d71fa93a4a8368816fbeeba",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.05pre924538.3497aa5c9457/nixexprs.tar.xz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_5": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1784707089,
|
||||||
|
"narHash": "sha256-DUedXhD2Rg8q4Xyd07Sb90eZGy4gg6W+Vl/WbLNwAZo=",
|
||||||
|
"rev": "b3fe9581c9061c749abef42b6d4ee7b7c05c33fa",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://releases.nixos.org/nixos/26.05/nixos-26.05.5845.b3fe9581c906/nixexprs.tar.xz"
|
||||||
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"id": "nixpkgs",
|
||||||
"ref": "nixos-25.11",
|
"ref": "nixos-26.05",
|
||||||
"type": "indirect"
|
"type": "indirect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"dank": "dank",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
|
"home-manager": "home-manager",
|
||||||
|
"niri": "niri",
|
||||||
"nix": "nix",
|
"nix": "nix",
|
||||||
"nixos-generators": "nixos-generators",
|
"nixos-generators": "nixos-generators",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_5",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable"
|
"nixpkgs-unstable": "nixpkgs-unstable"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"xwayland-satellite-stable": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1755491097,
|
||||||
|
"narHash": "sha256-m+9tUfsmBeF2Gn4HWa6vSITZ4Gz1eA1F5Kh62B0N4oE=",
|
||||||
|
"owner": "Supreeeme",
|
||||||
|
"repo": "xwayland-satellite",
|
||||||
|
"rev": "388d291e82ffbc73be18169d39470f340707edaa",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Supreeeme",
|
||||||
|
"ref": "v0.7",
|
||||||
|
"repo": "xwayland-satellite",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"xwayland-satellite-unstable": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1784679892,
|
||||||
|
"narHash": "sha256-Mb7jpqnrcYCfNSItIkkHpuR3YxWFxPuIBfcwNKlRBkk=",
|
||||||
|
"owner": "Supreeeme",
|
||||||
|
"repo": "xwayland-satellite",
|
||||||
|
"rev": "8d135d3b2854b30fd01ea6cd6c27e523dd50a839",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Supreeeme",
|
||||||
|
"repo": "xwayland-satellite",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nix.url = "github:NixOS/nix";
|
nix.url = "github:NixOS/nix";
|
||||||
nixpkgs.url = "nixpkgs/nixos-25.11";
|
nixpkgs.url = "nixpkgs/nixos-26.05";
|
||||||
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
||||||
@@ -11,7 +11,12 @@
|
|||||||
url = "github:nix-community/nixos-generators";
|
url = "github:nix-community/nixos-generators";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
# hyprland.url = "github:hyprwm/Hyprland";
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager/release-26.05";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
niri.url = "github:sodiboo/niri-flake";
|
||||||
|
dank.url = "github:AvengeMedia/DankMaterialShell";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
./disks.nix
|
./disks.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./environments.nix
|
./environments.nix
|
||||||
# ./network.nix
|
./network.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "jupiter";
|
networking.hostName = "jupiter";
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
# Try fix wifi disconnect
|
# Try fix wifi disconnect
|
||||||
networking.networkmanager.wifi.powersave = false;
|
networking.networkmanager.wifi.powersave = false;
|
||||||
|
|
||||||
# Disable hibernate completely
|
# Disable hibernate completely
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
systemd.targets."hibernate".enable = false;
|
systemd.targets."hibernate".enable = false;
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ _: {
|
|||||||
domain = "jupiter.solar.internal";
|
domain = "jupiter.solar.internal";
|
||||||
search = [ "jupiter.solar.internal" ];
|
search = [ "jupiter.solar.internal" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
|
|
||||||
hardware.nvidia.prime = {
|
hardware.nvidia.prime = {
|
||||||
sync.enable = true;
|
sync.enable = false;
|
||||||
|
|
||||||
nvidiaBusId = "PCI:01:00:0";
|
nvidiaBusId = "PCI:01:00:0";
|
||||||
intelBusId = "PCI:00:2:0";
|
intelBusId = "PCI:00:2:0";
|
||||||
@@ -44,6 +44,14 @@
|
|||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
# KDE (PowerDevil) power settings: do nothing on lid close while on AC power.
|
||||||
|
# Shipped as a system-wide default; KConfig cascades so a user's own
|
||||||
|
# ~/.config/powerdevilrc will override this if present.
|
||||||
|
environment.etc."xdg/powerdevilrc".text = ''
|
||||||
|
[AC][SuspendAndShutdown]
|
||||||
|
LidAction=0
|
||||||
|
'';
|
||||||
|
|
||||||
system = {
|
system = {
|
||||||
stateVersion = "23.05";
|
stateVersion = "23.05";
|
||||||
autoUpgrade.enable = true;
|
autoUpgrade.enable = true;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ in
|
|||||||
{
|
{
|
||||||
my.profiles = {
|
my.profiles = {
|
||||||
kde-desktop.enable = true;
|
kde-desktop.enable = true;
|
||||||
|
dank.enable = false;
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
apps = {
|
apps = {
|
||||||
desktop_apps = true;
|
desktop_apps = true;
|
||||||
@@ -19,7 +20,7 @@ in
|
|||||||
my.hardware = {
|
my.hardware = {
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
sound.enable = false;
|
sound.enable = false;
|
||||||
nvidia.enable = true;
|
nvidia.enable = false;
|
||||||
};
|
};
|
||||||
my.services = {
|
my.services = {
|
||||||
vpn.enable = true;
|
vpn.enable = true;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
let
|
let
|
||||||
cfg = config.my.profiles.audiobookshelf;
|
cfg = config.my.profiles.audiobookshelf;
|
||||||
hostName = config.networking.hostName;
|
hostName = config.networking.hostName;
|
||||||
|
domain = config.networking.domain;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.my.profiles.audiobookshelf = with lib; {
|
options.my.profiles.audiobookshelf = with lib; {
|
||||||
@@ -32,7 +33,7 @@ in
|
|||||||
group = "Media";
|
group = "Media";
|
||||||
name = "Audiobookshelf";
|
name = "Audiobookshelf";
|
||||||
description = "Audiobooks and podcasts";
|
description = "Audiobooks and podcasts";
|
||||||
href = "http://${hostName}:63834";
|
href = "http://${domain}:63834";
|
||||||
icon = "audiobookshelf.png";
|
icon = "audiobookshelf.png";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
self,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.profiles.dank;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ self.inputs.dank.nixosModules.dank-material-shell ];
|
||||||
|
|
||||||
|
options.my.profiles.dank.enable = lib.mkEnableOption "DankMaterialShell on niri";
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
# Dependency: declarative user config comes from home-manager.
|
||||||
|
my.profiles.home-manager.enable = true;
|
||||||
|
|
||||||
|
# System side: niri Wayland session + DMS daemons/packages.
|
||||||
|
programs.niri.enable = true;
|
||||||
|
|
||||||
|
programs.dank-material-shell = {
|
||||||
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
|
quickshell.package = pkgs.unstable.quickshell;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Home side: DMS shell + niri spawn for finn (keybinds come via includes).
|
||||||
|
home-manager.users.finn = {
|
||||||
|
imports = [
|
||||||
|
inputs.niri.homeModules.niri
|
||||||
|
inputs.dank.homeModules.dank-material-shell
|
||||||
|
inputs.dank.homeModules.niri
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.dank-material-shell = {
|
||||||
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
|
quickshell.package = pkgs.unstable.quickshell;
|
||||||
|
niri.enableSpawn = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.stateVersion = "26.05";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -8,6 +8,8 @@
|
|||||||
./development
|
./development
|
||||||
./home-assistant
|
./home-assistant
|
||||||
./hyprland
|
./hyprland
|
||||||
|
./home-manager
|
||||||
|
./dank
|
||||||
./zsh
|
./zsh
|
||||||
./paperless
|
./paperless
|
||||||
./prowlarr
|
./prowlarr
|
||||||
|
|||||||
@@ -11,11 +11,6 @@ let
|
|||||||
hostName = config.networking.hostName;
|
hostName = config.networking.hostName;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
# services.openthread-border-router isn't in nixos-25.11; pull from
|
|
||||||
# nixpkgs-unstable. Package comes from the existing unstable overlay.
|
|
||||||
"${self.inputs.nixpkgs-unstable}/nixos/modules/services/home-automation/openthread-border-router.nix"
|
|
||||||
];
|
|
||||||
|
|
||||||
options.my.profiles.home-assistant = with lib; {
|
options.my.profiles.home-assistant = with lib; {
|
||||||
enable = mkEnableOption "Home Automation";
|
enable = mkEnableOption "Home Automation";
|
||||||
@@ -34,6 +29,8 @@ in
|
|||||||
"otbr"
|
"otbr"
|
||||||
"thread"
|
"thread"
|
||||||
"xiaomi_miio"
|
"xiaomi_miio"
|
||||||
|
"apple_tv" # Apple TV (pyatv); pair via UI PIN flow
|
||||||
|
"tuya" # Tuya/SmartLife cloud; Unistyle WLAN irrigation computer
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
services.home-assistant.config = {
|
services.home-assistant.config = {
|
||||||
@@ -43,7 +40,7 @@ in
|
|||||||
internal_url = "http://${hostName}:8123";
|
internal_url = "http://${hostName}:8123";
|
||||||
external_url = "http://jupiter.solar.internal:8123";
|
external_url = "http://jupiter.solar.internal:8123";
|
||||||
};
|
};
|
||||||
mobile_app = {};
|
mobile_app = { };
|
||||||
automation = "!include automations.yaml";
|
automation = "!include automations.yaml";
|
||||||
script = "!include scripts.yaml";
|
script = "!include scripts.yaml";
|
||||||
scene = "!include scenes.yaml";
|
scene = "!include scenes.yaml";
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
self,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.profiles.home-manager;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ self.inputs.home-manager.nixosModules.home-manager ];
|
||||||
|
|
||||||
|
options.my.profiles.home-manager.enable = lib.mkEnableOption "home-manager integration";
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.extraSpecialArgs = { inherit inputs self; };
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
let
|
let
|
||||||
cfg = config.my.profiles.homepage;
|
cfg = config.my.profiles.homepage;
|
||||||
dashboardPort = 8082;
|
dashboardPort = 8082;
|
||||||
dashboardHost = config.networking.hostName;
|
dashboardHost = config.networking.domain;
|
||||||
dashboardUrl = "http://${dashboardHost}:${toString dashboardPort}";
|
dashboardUrl = "http://${dashboardHost}:${toString dashboardPort}";
|
||||||
manualServices = import ./manual-services.nix;
|
manualServices = import ./manual-services.nix;
|
||||||
manualWidgets = import ./manual-widgets.nix;
|
manualWidgets = import ./manual-widgets.nix;
|
||||||
|
|||||||
Reference in New Issue
Block a user