aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-07-21 08:02:43 -0700
committerFranck Cuny <franck@fcuny.net>2025-07-21 08:13:13 -0700
commitbc30869da959353a2eb9236c8bb317023895d64a (patch)
tree9bcead639b123b89b869eca82a97c2e0c64862d7 /nix
parentmove nix configuration to its own profile (diff)
downloadinfra-bc30869da959353a2eb9236c8bb317023895d64a.tar.gz
import nix profile in the server profile
Diffstat (limited to 'nix')
-rw-r--r--nix/machines/nixos/x86_64-linux/vm-synology.nix16
-rw-r--r--nix/profiles/server.nix5
2 files changed, 6 insertions, 15 deletions
diff --git a/nix/machines/nixos/x86_64-linux/vm-synology.nix b/nix/machines/nixos/x86_64-linux/vm-synology.nix
index 02030fc..9896ebb 100644
--- a/nix/machines/nixos/x86_64-linux/vm-synology.nix
+++ b/nix/machines/nixos/x86_64-linux/vm-synology.nix
@@ -1,4 +1,4 @@
-{ self, pkgs, ... }:
+{ self, ... }:
{
age = {
secrets = {
@@ -31,20 +31,6 @@
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "vm-synology";
- nix = {
- package = pkgs.nixVersions.latest;
- settings = {
- trusted-users = [
- "@admin"
- "fcuny"
- ];
- experimental-features = [
- "nix-command"
- "flakes"
- ];
- };
- };
-
# Define a user account. Don't forget to set a password with ‘passwd’.
users.mutableUsers = false;
diff --git a/nix/profiles/server.nix b/nix/profiles/server.nix
index 30f186b..1588314 100644
--- a/nix/profiles/server.nix
+++ b/nix/profiles/server.nix
@@ -5,6 +5,11 @@
...
}:
{
+
+ imports = [
+ ./nix.nix
+ ];
+
time.timeZone = "America/Los_Angeles";
# Don't require password for sudo