Skip to content

Commit b6265e1

Browse files
committed
addressed some tech debt
1 parent ed1e841 commit b6265e1

6 files changed

Lines changed: 20 additions & 23 deletions

File tree

flake.nix

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
outputs = inputs @ {
4343
self,
4444
nixpkgs,
45-
stylix,
46-
sops-nix,
4745
darwin,
4846
...
4947
}: let
@@ -58,7 +56,7 @@
5856
userConfig = import ./lib/user.nix;
5957

6058
mkSystem = import ./lib/mkSystem.nix {
61-
inherit inputs nixpkgs stylix sops-nix userConfig;
59+
inherit inputs userConfig;
6260
};
6361

6462
treefmtEval =
@@ -70,12 +68,12 @@
7068
windy = mkSystem "windy" "x86_64-linux";
7169
canoe = nixpkgs.lib.nixosSystem {
7270
system = "x86_64-linux";
73-
specialArgs = {inherit userConfig;};
71+
specialArgs = {inherit inputs userConfig;};
7472
modules = [./hosts/canoe/minimal.nix];
7573
};
7674
canoe-cosmic = nixpkgs.lib.nixosSystem {
7775
system = "x86_64-linux";
78-
specialArgs = {inherit userConfig;};
76+
specialArgs = {inherit inputs userConfig;};
7977
modules = [./hosts/canoe/cosmic.nix];
8078
};
8179
};

hosts/canoe/cosmic.nix

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@
1111

1212
isoImage.edition = "cosmic";
1313

14-
# cosmic-comp owns the seat; X server would race on tty1.
15-
services.xserver.enable = lib.mkForce false;
14+
services = {
15+
# cosmic-comp owns the seat; X server would race on tty1.
16+
xserver.enable = lib.mkForce false;
1617

17-
services.desktopManager.cosmic.enable = true;
18+
desktopManager.cosmic.enable = true;
1819

19-
services.greetd = {
20-
enable = true;
21-
settings.initial_session = {
22-
command = lib.getExe pkgs.cosmic-session;
23-
user = "nixos";
20+
greetd = {
21+
enable = true;
22+
settings.initial_session = {
23+
command = lib.getExe pkgs.cosmic-session;
24+
user = "nixos";
25+
};
2426
};
2527
};
2628
}

hosts/ninja/configuration.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
home-manager.enable = true;
7575
nix-ld.enable = true;
7676
yubikey.enable = true;
77-
sudoReadonly.enable = true;
77+
"sudo-readonly".enable = true;
7878
};
7979
};
8080

hosts/windy/configuration.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
theme.enable = true;
3939
nix-ld.enable = true;
4040
yubikey.enable = true;
41-
sudoReadonly.enable = true;
41+
"sudo-readonly".enable = true;
4242
};
4343
};
4444

lib/mkSystem.nix

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
22
inputs,
3-
nixpkgs,
4-
stylix,
5-
sops-nix,
63
userConfig,
74
}: hostname: system:
8-
nixpkgs.lib.nixosSystem {
5+
inputs.nixpkgs.lib.nixosSystem {
96
inherit system;
107
specialArgs = {
118
inherit inputs userConfig;
@@ -14,8 +11,8 @@ nixpkgs.lib.nixosSystem {
1411
modules = [
1512
../hosts/${hostname}/configuration.nix
1613
inputs.disko.nixosModules.disko
17-
stylix.nixosModules.stylix
18-
sops-nix.nixosModules.sops
14+
inputs.stylix.nixosModules.stylix
15+
inputs.sops-nix.nixosModules.sops
1916
../modules/core/sops.nix
2017
{
2118
nixpkgs.config.allowUnfree = true;

modules/core/sudo-readonly.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
...
66
}:
77
with lib; let
8-
cfg = config.mySystem.core.sudoReadonly;
8+
cfg = config.mySystem.core."sudo-readonly";
99

1010
bin = "/run/current-system/sw/bin";
1111

@@ -51,7 +51,7 @@ with lib; let
5151
"${bin}/iotop"
5252
];
5353
in {
54-
options.mySystem.core.sudoReadonly = {
54+
options.mySystem.core."sudo-readonly" = {
5555
enable = mkEnableOption "NOPASSWD sudo for read-only system diagnostics";
5656
};
5757

0 commit comments

Comments
 (0)