mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
Now using nh
This commit is contained in:
9
Makefile
9
Makefile
@@ -8,14 +8,15 @@ machine:
|
|||||||
@echo "${HOSTNAME}"
|
@echo "${HOSTNAME}"
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
nixos-rebuild switch --flake ".#${HOSTNAME}" --use-remote-sudo
|
nh os switch -a -H "${HOSTNAME}" .
|
||||||
|
|
||||||
test:
|
test:
|
||||||
nixos-rebuild test --flake ".#${HOSTNAME}" --use-remote-sudo
|
nh os test -a -H "${HOSTNAME}" .
|
||||||
|
|
||||||
upgrade:
|
update:
|
||||||
sudo nix flake update
|
sudo nix flake update
|
||||||
nixos-rebuild switch --flake ".#${HOSTNAME}" --use-remote-sudo
|
|
||||||
|
upgrade: update switch
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
sudo nix-collect-garbage -d
|
sudo nix-collect-garbage -d
|
||||||
|
|||||||
6
flake.lock
generated
6
flake.lock
generated
@@ -222,11 +222,11 @@
|
|||||||
"nuschtosSearch": "nuschtosSearch"
|
"nuschtosSearch": "nuschtosSearch"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1746485010,
|
"lastModified": 1746536883,
|
||||||
"narHash": "sha256-KK1prO/dQ0HY17YseXI+udT/WbK4s6YdR2YXJE9kGTU=",
|
"narHash": "sha256-EJax0aiJIVJlqF7QyAefZ9fi1HgGcm7U1rBkcm2Z3Ps=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "53084257189483605182aaf388696ace02f5d208",
|
"rev": "c26f5c2e31c1da895bf9289783ff8e2fe3637ca0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -4,14 +4,6 @@
|
|||||||
./fonts.nix
|
./fonts.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 1w";
|
|
||||||
};
|
|
||||||
|
|
||||||
nix.optimise.automatic = true;
|
|
||||||
|
|
||||||
time.timeZone = "Europe/Rome";
|
time.timeZone = "Europe/Rome";
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
|
|||||||
@@ -62,4 +62,9 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
} else {};
|
} else {};
|
||||||
|
|
||||||
|
programs.nh = {
|
||||||
|
enable = true;
|
||||||
|
clean.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user