Move some host specific configuration out of user's common/ config

This commit is contained in:
Cameron Reed 2024-01-13 14:33:50 -07:00
parent 425e169fb7
commit ab49cfd6d6
2 changed files with 8 additions and 4 deletions

View File

@ -18,10 +18,9 @@ in {
uid = 1000;
group = "cameron";
extraGroups = [ "wheel" ] ++
(lib.optionals config.networking.networkmanager.enable [ "networkmanager" ]) ++
(lib.optionals (config.networking.hostName == "nixos") [ "dialout" ]);
(lib.optionals config.networking.networkmanager.enable [ "networkmanager" ]);
home = "/home/cameron-nix";
home = "/home/cameron";
createHome = true;
shell = pkgs.zsh;

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
let common_dir=../../common;
in {
@ -171,6 +171,11 @@ in {
# User Configuration
user.cameron.enable = true;
# Default user settings overrides
users.users.cameron = {
home = lib.mkForce "/home/cameron-nix";
extraGroups = [ "dialout" ];
};