Merge branch 'desktop' into laptop

This commit is contained in:
Alexandre Cavalheiro 2024-07-04 15:44:51 -03:00
commit bb3e92bb4d
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
3 changed files with 12 additions and 20 deletions

View file

@ -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": {

View file

@ -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
View file

@ -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