Merge branch 'desktop' into laptop
This commit is contained in:
commit
bb3e92bb4d
3 changed files with 12 additions and 20 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -7,11 +7,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1719827439,
|
||||
"narHash": "sha256-tneHOIv1lEavZ0vQ+rgz67LPNCgOZVByYki3OkSshFU=",
|
||||
"lastModified": 1720045378,
|
||||
"narHash": "sha256-lmE7B+QXw7lWdBu5GQlUABSpzPk3YBb9VbV+IYK5djk=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "59ce796b2563e19821361abbe2067c3bb4143a7d",
|
||||
"rev": "0a30138c694ab3b048ac300794c2eb599dc40266",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
14
nixos.nix
14
nixos.nix
|
@ -21,11 +21,15 @@
|
|||
"flakes"
|
||||
];
|
||||
|
||||
# Enable automatic garbage collection.
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 1w";
|
||||
# Enable nh, a bundle of CLI utilities for NixOS
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
|
||||
# Enable automatic garbage collection.
|
||||
clean.enable = true;
|
||||
clean.extraArgs = "--keep-since 4d --keep 3";
|
||||
|
||||
flake = "/home/wizardlink/.system";
|
||||
};
|
||||
|
||||
# Optimize storage
|
||||
|
|
12
switch
12
switch
|
@ -1,12 +0,0 @@
|
|||
#!/etc/profiles/per-user/wizardlink/bin/fish
|
||||
|
||||
function build
|
||||
sudo nixos-rebuild switch --flake ~/.system\#nixos $argv[1]
|
||||
end
|
||||
|
||||
if test "--fast" = "$argv[1]"
|
||||
build --fast
|
||||
else
|
||||
build
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue