Update the nixdate command to actually update the system/flake

This commit is contained in:
Jimbo 2024-09-09 01:06:30 -04:00
parent 5aff442e3b
commit 0697bd88d4
5 changed files with 37 additions and 33 deletions

View file

@ -90,11 +90,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1720042825, "lastModified": 1725703823,
"narHash": "sha256-A0vrUB6x82/jvf17qPCpxaM+ulJnD8YZwH9Ci0BsAzE=", "narHash": "sha256-tDgM4d8mLK0Hd6YMB2w1BqMto1XBXADOzPEaLl10VI4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "e1391fb22e18a36f57e6999c7a9f966dc80ac073", "rev": "208df2e558b73b6a1f0faec98493cb59a25f62ba",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -110,11 +110,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1725153537, "lastModified": 1725600800,
"narHash": "sha256-8+BJdXM1WBAttY+C63pEMUmUtSEWXHEhXOkLK4k1s2E=", "narHash": "sha256-wst7p3RZ9kZUNzN22d27wU8YSBB7Grlx6Q03A7boRaU=",
"owner": "Jovian-Experiments", "owner": "Jovian-Experiments",
"repo": "Jovian-NixOS", "repo": "Jovian-NixOS",
"rev": "b13488a1f8ab01db6a3d18629f7b22a430f03984", "rev": "2d050e65a71e02a1f19d1a35c086bd2e3dfb2cdb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -152,11 +152,11 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1725414050, "lastModified": 1725846230,
"narHash": "sha256-apEL1vA8A8skxokuNoaH1Jfx32XybeQpOo8uJDKPcjY=", "narHash": "sha256-zk4fRuYct4FcCrXM7uguQLhoqytM4y0MoUeiPBbVlZc=",
"owner": "Infinidoge", "owner": "Infinidoge",
"repo": "nix-minecraft", "repo": "nix-minecraft",
"rev": "55a9a8faee81d758e09f28ad395f9a4f29273c39", "rev": "7ba553bbdf244f0c88f3306cf4e5dc36d2c0fc37",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -167,11 +167,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1725477728, "lastModified": 1725716377,
"narHash": "sha256-ahej1VRqKmWbG7gewty+GlrSBEeGY/J2Zy8Nt8+3fdg=", "narHash": "sha256-7NzW9O/cAw7iWzRfh7Oo/SuSudL4a1YTKS6yoh3tMck=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "880be1ab837e1e9fe0449dae41ac4d034694d4ce", "rev": "04a1cda0c1725094a4db703cccbb956b7558f5a6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -235,11 +235,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1725432240, "lastModified": 1725634671,
"narHash": "sha256-+yj+xgsfZaErbfYM3T+QvEE2hU7UuE+Jf0fJCJ8uPS0=", "narHash": "sha256-v3rIhsJBOMLR8e/RNWxr828tB+WywYIoajrZKFM+0Gg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ad416d066ca1222956472ab7d0555a6946746a80", "rev": "574d1eac1c200690e27b8eb4e24887f8df7ac27c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -298,11 +298,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1725407940, "lastModified": 1725693463,
"narHash": "sha256-tiN5Rlg/jiY0tyky+soJZoRzLKbPyIdlQ77xVgREDNM=", "narHash": "sha256-ZPzhebbWBOr0zRWW10FfqfbJlan3G96/h3uqhiFqmwg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6f6c45b5134a8ee2e465164811e451dcb5ad86e3", "rev": "68e7dce0a6532e876980764167ad158174402c6f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -314,11 +314,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1725541414, "lastModified": 1725854666,
"narHash": "sha256-2btQOiIw+yMrxAHzVCp5ou9IbWkzYhQ5dIS3vRO7Sd8=", "narHash": "sha256-Peccz5solKBUlGtN5vfWHxbd0Mxks+feh1TU/A7hZTg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "72c08881a42221c2de613b425b735c4cd7f85d86", "rev": "4448858f13f127db4c8055e2bf6fe6e1257ba8ea",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -43,9 +43,10 @@
auth = import ./common/auth.nix; auth = import ./common/auth.nix;
hostname = "JimDeck"; hostname = "JimDeck";
in { in {
sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}"; flakedate = "${auth.method} nix flake update /etc/nixos";
homedate = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}"; sysswitch = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}";
nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'"; homeswitch = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}";
nixdate = "flakedate; sysswitch; homeswitch; notify-send 'NixOS switch done.'";
}; };
}; };
} }

View file

@ -45,9 +45,10 @@
auth = import ./common/auth.nix; auth = import ./common/auth.nix;
hostname = "JimDesktop"; hostname = "JimDesktop";
in { in {
sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}"; flakedate = "${auth.method} nix flake update /etc/nixos";
homedate = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}"; sysswitch = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}";
nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'"; homeswitch = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}";
nixdate = "flakedate; sysswitch; homeswitch; notify-send 'NixOS switch done.'";
}; };
}; };

View file

@ -43,9 +43,10 @@
auth = import ./common/auth.nix; auth = import ./common/auth.nix;
hostname = "JimLenovo"; hostname = "JimLenovo";
in { in {
sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}"; flakedate = "${auth.method} nix flake update /etc/nixos";
homedate = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}"; sysswitch = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}";
nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'"; homeswitch = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}";
nixdate = "flakedate; sysswitch; homeswitch; notify-send 'NixOS switch done.'";
}; };
}; };

View file

@ -12,9 +12,10 @@
auth = import ./common/auth.nix; auth = import ./common/auth.nix;
hostname = "JimServer"; hostname = "JimServer";
in { in {
sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}"; flakedate = "${auth.method} nix flake update /etc/nixos";
homedate = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}"; sysswitch = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#${hostname}";
nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'"; homeswitch = "home-manager switch --flake /etc/nixos/.#jimbo@${hostname}";
nixdate = "flakedate; sysswitch; homeswitch; notify-send 'NixOS switch done.'";
}; };
}; };
} }