summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2025-03-22 18:50:13 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2025-03-22 20:07:27 +0100
commit6ba4c55398404c1f691095967f3afca5e3209c89 (patch)
treef447ce0b13d49b32823bfbae66487b6c3ca5de7d /nixos
parent470d2f76585e8244b6ff7d89fbce94815392bc3d (diff)
nixos: split nix and system
Diffstat (limited to 'nixos')
-rw-r--r--nixos/default.nix1
-rw-r--r--nixos/nix.nix31
-rw-r--r--nixos/system.nix24
3 files changed, 26 insertions, 30 deletions
diff --git a/nixos/default.nix b/nixos/default.nix
index 8dd271c..ea57acd 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 e710c04..e0ad731 100644
--- a/nixos/nix.nix
+++ b/nixos/nix.nix
@@ -1,35 +1,6 @@
-{lib, ...}: {
+{...}: {
personal.nix = {
enable = true;
- autoUpgrade = {
- enable = true;
- autoUpdateInputs = [
- "precision-3571/home-manager"
- "precision-3571/my-nixpkgs/nur"
- "precision-3571/nixos-hardware"
- "precision-3571/nixpkgs"
- "precision-3571/stylix"
- ];
- };
- flake = "git+file:///etc/nixos";
gc.enable = true;
- remoteBuilds = {
- enable = true;
- machines.hephaistos = {
- enable = true;
- domain = "local";
- speedFactor = 1;
- require = false;
- };
- };
- };
-
- systemd.services.flake-update = {
- preStart = lib.mkAfter ''
- pushd /home/qaristote/code/nix/machines/precision-3571
- git status
- popd
- '';
- environment.HOME = "/root";
};
}
diff --git a/nixos/system.nix b/nixos/system.nix
new file mode 100644
index 0000000..af7c5e3
--- /dev/null
+++ b/nixos/system.nix
@@ -0,0 +1,24 @@
+{lib, ...}: {
+ personal.system = {
+ autoUpgrade = {
+ enable = true;
+ autoUpdateInputs = [
+ "precision-3571/home-manager"
+ "precision-3571/my-nixpkgs/nur"
+ "precision-3571/nixos-hardware"
+ "precision-3571/nixpkgs"
+ "precision-3571/stylix"
+ ];
+ };
+ flake = "git+file:///etc/nixos";
+ };
+
+ systemd.services.flake-update = {
+ preStart = lib.mkAfter ''
+ pushd /home/qaristote/code/nix/machines/precision-3571
+ git status
+ popd
+ '';
+ environment.HOME = "/root";
+ };
+}