flake.lock: Update
Flake lock file updates: • Updated input 'nixpkgs': 'github:nixos/nixpkgs/4e0eec54db79d4d0909f45a88037210ff8eaffee' (2024-10-26) → 'github:nixos/nixpkgs/86e78d3d2084ff87688da662cf78c2af085d8e73' (2024-10-26)
This commit is contained in:
parent
0194e0ce3b
commit
f92fc744be
6
flake.lock
generated
6
flake.lock
generated
@ -186,11 +186,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1729951556,
|
"lastModified": 1729980323,
|
||||||
"narHash": "sha256-bpb6r3GjzhNW8l+mWtRtLNg5PhJIae041sPyqcFNGb4=",
|
"narHash": "sha256-eWPRZAlhf446bKSmzw6x7RWEE4IuZgAp8NW3eXZwRAY=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "4e0eec54db79d4d0909f45a88037210ff8eaffee",
|
"rev": "86e78d3d2084ff87688da662cf78c2af085d8e73",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
6
justfile
6
justfile
@ -21,13 +21,13 @@ _run cmd:
|
|||||||
_build:
|
_build:
|
||||||
nom build {{ root_dir }}#darwinConfigurations.{{ hostname }}.system
|
nom build {{ root_dir }}#darwinConfigurations.{{ hostname }}.system
|
||||||
|
|
||||||
# build latest home-manager generation
|
# build nix-darwin system
|
||||||
build: (_run "_build")
|
build: (_run "_build")
|
||||||
|
|
||||||
_switch: _build
|
_switch: _build
|
||||||
./result/sw/bin/darwin-rebuild -v switch --flake "{{ root_dir }}"
|
./result/sw/bin/darwin-rebuild -v switch --flake "{{ root_dir }}"
|
||||||
|
|
||||||
# switch to latest home-manager generation
|
# build nix-darwin system and switch to it
|
||||||
switch: (_run "_switch") && _report-changes
|
switch: (_run "_switch") && _report-changes
|
||||||
|
|
||||||
_update: && _switch _brew-update _report-changes
|
_update: && _switch _brew-update _report-changes
|
||||||
@ -49,7 +49,7 @@ _report-changes:
|
|||||||
# update packages and switch
|
# update packages and switch
|
||||||
update: (_run "_update")
|
update: (_run "_update")
|
||||||
|
|
||||||
# clean up nix garbage
|
# clean up garbage
|
||||||
clean days="7":
|
clean days="7":
|
||||||
home-manager expire-generations "-{{days}} days"
|
home-manager expire-generations "-{{days}} days"
|
||||||
nix profile wipe-history --older-than "{{days}}d"
|
nix profile wipe-history --older-than "{{days}}d"
|
||||||
|
2
nix.nix
2
nix.nix
@ -24,7 +24,7 @@ in
|
|||||||
{
|
{
|
||||||
services.nix-daemon.enable = true;
|
services.nix-daemon.enable = true;
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.nixFlakes;
|
package = pkgs.nixVersions.stable;
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
keep-outputs = true
|
keep-outputs = true
|
||||||
keep-derivations = true
|
keep-derivations = true
|
||||||
|
Loading…
Reference in New Issue
Block a user