diff options
Diffstat (limited to 'nix/hosts/nixos')
-rw-r--r-- | nix/hosts/nixos/default.nix | 6 | ||||
-rw-r--r-- | nix/hosts/nixos/packages.nix | 9 | ||||
-rw-r--r-- | nix/hosts/nixos/user.nix | 12 |
3 files changed, 27 insertions, 0 deletions
diff --git a/nix/hosts/nixos/default.nix b/nix/hosts/nixos/default.nix new file mode 100644 index 0000000..abfb3a7 --- /dev/null +++ b/nix/hosts/nixos/default.nix @@ -0,0 +1,6 @@ +{ ... }: { + imports = [ + ./packages.nix + ./user.nix + ]; +} diff --git a/nix/hosts/nixos/packages.nix b/nix/hosts/nixos/packages.nix new file mode 100644 index 0000000..8e807c6 --- /dev/null +++ b/nix/hosts/nixos/packages.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: { + environment = { + systemPackages = with pkgs; [ + git + jq + vim + ]; + }; +} diff --git a/nix/hosts/nixos/user.nix b/nix/hosts/nixos/user.nix new file mode 100644 index 0000000..b358d3e --- /dev/null +++ b/nix/hosts/nixos/user.nix @@ -0,0 +1,12 @@ +{ ... }: +{ + users.users.fcuny = { + uid = 1000; + isNormalUser = true; + extraGroups = + [ + "wheel" + "dialout" # Enable access to serial devices + ]; + }; +} |