It works now

This commit is contained in:
Cameron Reed 2024-01-09 17:41:10 -07:00
parent d6b8d3e30f
commit 16236b53e7
2 changed files with 5 additions and 6 deletions

View File

@ -5,7 +5,7 @@ with lib; let
in { in {
options.user.cameron = { options.user.cameron = {
enable = mkEnableOption "user cameron"; enable = mkEnableOption "user cameron";
} };
config = mkIf cfg.enable { config = mkIf cfg.enable {
users = { users = {
@ -17,7 +17,8 @@ in {
uid = 1000; uid = 1000;
group = "cameron"; group = "cameron";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "wheel" ] ++
(lib.optionals config.networking.networkmanager.enable [ "networkmanager" ]);
home = "/home/cameron-nix"; home = "/home/cameron-nix";
createHome = true; createHome = true;

View File

@ -1,5 +1,4 @@
{ {
description = "My nixos config as a flake"; description = "My nixos config as a flake";
@ -8,7 +7,7 @@
}; };
outputs = { self, nixpkgs }@inputs: outputs = { self, nixpkgs }@inputs:
let let
lib = nixpkgs.lib; lib = nixpkgs.lib;
in { in {
@ -18,11 +17,10 @@
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = inputs; specialArgs = inputs;
modules = [ modules = [
./configuration.nix ./hosts/nixos/configuration.nix
]; ];
}; };
}; };
}; };
} }