Skip to content

Commit 1f89b06

Browse files
committed
refactor config layout
1 parent e47bf1d commit 1f89b06

File tree

4 files changed

+30
-53
lines changed

4 files changed

+30
-53
lines changed

flake.nix

Lines changed: 10 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
url = "github:Mic92/nix-index-database";
1212
inputs.nixpkgs.follows = "nixpkgs";
1313
};
14-
impermanence.url = "github:nix-community/impermanence";
1514
agenix = {
1615
url = "github:ryantm/agenix";
1716
inputs.nixpkgs.follows = "nixpkgs";
1817
};
18+
impermanence.url = "github:nix-community/impermanence";
1919
niri-unstable = {
2020
url = "github:YaLTeR/niri/2761922210a6c92dc22bbc5c8dce8c3771b02a54";
2121
flake = false;
@@ -25,36 +25,21 @@
2525
inputs.niri-unstable.follows = "niri-unstable";
2626
};
2727
# neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
28+
# private flakes
2829
gridx = {
2930
url = "git+ssh://[email protected]/debugloop/gridx";
3031
# url = "path:/home/danieln/code/gridx";
3132
inputs.nixpkgs.follows = "nixpkgs";
3233
};
3334
wunschkonzert-install = {
3435
url = "git+ssh://[email protected]/debugloop/wunschkonzert-install";
36+
# url = "path:/home/danieln/code/wunschkonzert-install";
3537
};
3638
};
3739

38-
outputs = inputs @ {
39-
nixpkgs,
40-
home-manager,
41-
...
42-
}: {
40+
outputs = inputs @ {nixpkgs, ...}: {
4341
formatter = {
44-
x86_64-linux = nixpkgs.legacyPackages.${nixpkgs.system}.alejandra;
45-
};
46-
homeConfigurations = let
47-
pkgs = nixpkgs.legacyPackages.${nixpkgs.system};
48-
in {
49-
"danieln" = home-manager.lib.homeManagerConfiguration {
50-
inherit pkgs;
51-
modules = [
52-
./home
53-
];
54-
extraSpecialArgs = {
55-
inherit inputs;
56-
};
57-
};
42+
x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
5843
};
5944
nixosConfigurations = {
6045
simmons = nixpkgs.lib.nixosSystem {
@@ -67,17 +52,6 @@
6752
./hosts/common
6853
./hosts/common/laptops.nix
6954
./hosts/simmons
70-
({...}: {
71-
home-manager.users.danieln = (
72-
{...}: {
73-
imports = [
74-
./home
75-
./home/wayland
76-
];
77-
}
78-
);
79-
})
80-
inputs.niri.nixosModules.niri
8155
];
8256
};
8357

@@ -92,17 +66,12 @@
9266
./hosts/common/laptops.nix
9367
./hosts/lusus
9468
({...}: {
95-
home-manager.users.danieln = (
96-
{...}: {
97-
imports = [
98-
./home
99-
./home/wayland
100-
inputs.gridx.home-module
101-
];
102-
}
103-
);
69+
home-manager.users.danieln = {
70+
imports = [
71+
inputs.gridx.home-module
72+
];
73+
};
10474
})
105-
inputs.niri.nixosModules.niri
10675
];
10776
};
10877

@@ -116,16 +85,6 @@
11685
./hosts/common
11786
./hosts/common/servers.nix
11887
./hosts/hyperion
119-
({...}: {
120-
home-manager.users.danieln = (
121-
{...}: {
122-
imports = [
123-
./home
124-
./home/headless.nix
125-
];
126-
}
127-
);
128-
})
12988
];
13089
};
13190
};

home/wayland/kitty.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
size = 12;
1111
};
1212
settings = {
13-
symbol_map =
14-
"U+23fb-U+23fe,U+2665,U+26a1,U+2b58,U+e000-U+e00a,U+e0a0-U+e0a2,U+e0a3,U+e0b0-U+e0b3,U+e0b4-U+e0c8,U+e0ca,U+e0cc-U+e0d7,U+e200-U+e2a9,U+e300-U+e3e3,U+e5fa-U+e6b5,U+e700-U+e7c5,U+ea60-U+ec1e,U+ed00-U+efc1,U+f000-U+f2ff,U+f300-U+f372,U+f400-U+f533,U+f500-U+fd46,U+f0001-U+f1af0,U+276c-U+2771,U+2500-U+259f,U+274C Symbols Nerd Font Mono";
13+
symbol_map = "U+23fb-U+23fe,U+2665,U+26a1,U+2b58,U+e000-U+e00a,U+e0a0-U+e0a2,U+e0a3,U+e0b0-U+e0b3,U+e0b4-U+e0c8,U+e0ca,U+e0cc-U+e0d7,U+e200-U+e2a9,U+e300-U+e3e3,U+e5fa-U+e6b5,U+e700-U+e7c5,U+ea60-U+ec1e,U+ed00-U+efc1,U+f000-U+f2ff,U+f300-U+f372,U+f400-U+f533,U+f500-U+fd46,U+f0001-U+f1af0,U+276c-U+2771,U+2500-U+259f,U+274C Symbols Nerd Font Mono";
1514

1615
# make the font slightly wider
1716
# modify_font = "cell_width 105%";

hosts/common/laptops.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
{
22
pkgs,
33
lib,
4+
inputs,
45
...
56
}: {
7+
imports = [
8+
inputs.niri.nixosModules.niri
9+
];
10+
11+
home-manager.users.danieln = {
12+
imports = [
13+
../../home
14+
../../home/wayland
15+
];
16+
};
17+
618
networking = {
719
networkmanager = {
820
enable = true;

hosts/common/servers.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{lib, ...}: {
2+
home-manager.users.danieln = {
3+
imports = [
4+
../../home
5+
../../home/headless.nix
6+
];
7+
};
8+
29
services = {
310
prometheus.exporters = {
411
node = {

0 commit comments

Comments
 (0)