diff --git a/flake.nix b/flake.nix index 23e653c..f21a9e3 100644 --- a/flake.nix +++ b/flake.nix @@ -84,7 +84,7 @@ ./nixos/kde-desktop.nix ./nixos/cad.nix ./nixos/zerotier.nix - ./nixos/work.nix + ./nixos/family.nix ]; }; #Work laptop, dell g15. diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 287ef66..55be747 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -76,15 +76,23 @@ #Deduplicate nix store on a timer nix.optimise.automatic = true; + programs.neovim = { + enable = true; + defaultEditor = true; + viAlias = true; + vimAlias = true; + }; + environment.systemPackages = with pkgs; [ # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. # wget - pkgs.neovim pkgs.mosh pkgs.git pkgs.usbutils pkgs.pciutils pkgs.atool + pkgs.comma + pkgs.home-manager appimage-run ]; diff --git a/nixos/family.nix b/nixos/family.nix index 5a6e642..4b733f8 100644 --- a/nixos/family.nix +++ b/nixos/family.nix @@ -1,10 +1,14 @@ -{ inputs, outputs, lib, config, pkgs, hostname, specialArgs, ... }: { +{ inputs, outputs, lib, config, pkgs, hostname, specialArgs, ... }: - services.displayManager = { +let + autoLoginUser = specialArgs.mainUser or null; +in +{ + services.displayManager = lib.mkIf (autoLoginUser != null) { autoLogin.enable = true; - autoLogin.user = "${specialArgs.mainUser}"; - }; + autoLogin.user = autoLoginUser; + }; users.users = { gwen = { isNormalUser = true; @@ -18,5 +22,9 @@ isNormalUser = true; extraGroups = [ "networkManager" ]; }; + logic11 = { + isNormalUser = true; + extraGroups = [ "wheel" "dialout" "networkmanager" "dialout" "docker" "plugdev" "vboxusers" ]; + }; }; }