File tree 5 files changed +13
-13
lines changed
5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 3
3
lib ,
4
4
config ,
5
5
pkgs ,
6
+ hostname ,
6
7
...
7
8
} : {
9
+ imports = [
10
+ ( import ./${ hostname } )
11
+ ] ;
12
+
8
13
nixpkgs = {
9
14
config = {
10
15
allowUnfree = true ;
33
38
options = "--delete-older-than 7d" ;
34
39
} ;
35
40
} ;
36
-
41
+ networking . hostName = hostname ;
42
+
37
43
time . timeZone = "America/Detroit" ;
38
44
systemd . coredump . enable = true ;
39
45
Original file line number Diff line number Diff line change 6
6
...
7
7
} : {
8
8
imports = [
9
+ ./hardware-configuration.nix
9
10
inputs . nixos-wsl . nixosModules . default
10
11
{
11
12
wsl . enable = true ;
Original file line number Diff line number Diff line change 48
48
} :
49
49
nixpkgs . lib . nixosSystem {
50
50
system = target ;
51
- specialArgs = { inherit inputs ; } ;
51
+ specialArgs = { inherit inputs ; inherit hostname ; } ;
52
52
modules =
53
53
[
54
- { networking . hostName = hostname ; }
55
- ./common.nix
56
- ./${ hostname } /hardware-configuration.nix
57
- ./${ hostname } /system.nix
54
+ ./.
58
55
home-manager . nixosModules . home-manager
59
56
{
60
57
home-manager . useGlobalPkgs = true ;
61
58
home-manager . useUserPackages = true ;
62
- home-manager . users . rsmyth = import ./home-manager/home.nix ;
59
+ home-manager . users . rsmyth = import ./home-manager ;
63
60
home-manager . extraSpecialArgs = { inherit inputs ; } ;
64
61
}
65
62
]
Original file line number Diff line number Diff line change 10
10
inputs . nix-index-database . hmModules . nix-index
11
11
] ;
12
12
13
- nixpkgs = {
14
- overlays = [
15
- ] ;
16
- } ;
17
-
18
13
home = {
19
14
username = "rsmyth" ;
20
15
homeDirectory = "/home/rsmyth" ;
101
96
nxswitch = "sudo nixos-rebuild switch --flake ${ config . xdg . configHome } /nix" ;
102
97
nxbuild = "sudo nixos-rebuild boot --flake ${ config . xdg . configHome } /nix" ;
103
98
nxedit = "${ config . home . sessionVariables . EDITOR } ${ config . xdg . configHome } /nix" ;
104
- getLargest = "${ lib . getExe pkgs . fd } -t file . --exec ls -s | sort -nr | head-n20" ;
99
+ getLargest = "${ lib . getExe pkgs . fd } -t file . --exec ls -s | sort -nr | head -n20" ;
105
100
dev = "nix develop --command ${ lib . getExe pkgs . fish } " ;
106
101
scratch = ''systemd-run --property=PrivateTmp=true --description "scratch shell" --user --collect --shell --working-dir "/var/tmp"'' ;
107
102
} ;
Original file line number Diff line number Diff line change 6
6
...
7
7
} : {
8
8
imports = [
9
+ ./hardware-configuration.nix
9
10
inputs . nixos-wsl . nixosModules . default
10
11
{
11
12
wsl . enable = true ;
You can’t perform that action at this time.
0 commit comments