summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2025-03-22 18:57:19 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2025-03-22 20:12:45 +0100
commit5a074b7745b5855fd13ea53b21be7ea0d6497ffc (patch)
tree832b16ee3611d4ab5bec2b103789573573eb64d4
parent09382df4141b8ccd294a83e42f55306430b7c3bd (diff)
nixos: split nix and system
-rw-r--r--nixos/default.nix1
-rw-r--r--nixos/nix.nix16
-rw-r--r--nixos/system.nix20
3 files changed, 21 insertions, 16 deletions
diff --git a/nixos/default.nix b/nixos/default.nix
index f3c5cda..198388e 100644
--- a/nixos/default.nix
+++ b/nixos/default.nix
@@ -9,6 +9,7 @@
./hardware
./nix.nix
./networking.nix
+ ./system.nix
./users.nix
];
diff --git a/nixos/nix.nix b/nixos/nix.nix
index e2e4869..e0ad731 100644
--- a/nixos/nix.nix
+++ b/nixos/nix.nix
@@ -1,22 +1,6 @@
{...}: {
personal.nix = {
enable = true;
- autoUpgrade = {
- enable = true;
- autoUpdateInputs = [
- "latitude-7490/home-manager"
- "latitude-7490/my-nixpkgs/nur"
- "latitude-7490/nixos-hardware"
- "latitude-7490/nixpkgs"
- "latitude-7490/stylix"
- ];
- };
- flake = "git+file:///etc/nixos";
gc.enable = true;
};
- systemd.services.flake-update.preStart = ''
- pushd /home/qaristote/code/nix/machines/latitude-7490
- git status
- popd
- '';
}
diff --git a/nixos/system.nix b/nixos/system.nix
new file mode 100644
index 0000000..afaaf62
--- /dev/null
+++ b/nixos/system.nix
@@ -0,0 +1,20 @@
+{...}: {
+ personal.system = {
+ autoUpgrade = {
+ enable = true;
+ autoUpdateInputs = [
+ "latitude-7490/home-manager"
+ "latitude-7490/my-nixpkgs/nur"
+ "latitude-7490/nixos-hardware"
+ "latitude-7490/nixpkgs"
+ "latitude-7490/stylix"
+ ];
+ };
+ flake = "git+file:///etc/nixos";
+ };
+ systemd.services.flake-update.preStart = ''
+ pushd /home/qaristote/code/nix/machines/latitude-7490
+ git status
+ popd
+ '';
+}