feat: inherited Nvidia configuration from old conf
This commit is contained in:
parent
f10f6922fb
commit
8fecc5f592
7 changed files with 117 additions and 82 deletions
|
@ -8,15 +8,11 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
myHostName = "homelab-nix";
|
||||
stevenUserName = "stvnliu";
|
||||
globals = import ./globals.nix;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
#inputs.hardware.nixosModules.common-cpu-amd
|
||||
#inputs.hardware.nixosModules.common-ssd
|
||||
./hardware-configuration.nix
|
||||
./services/display-manager.nix
|
||||
];
|
||||
boot.loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
|
@ -36,6 +32,12 @@ in
|
|||
'';
|
||||
};
|
||||
};
|
||||
security.polkit.enable = true;
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
programs.sway = {
|
||||
enable = true;
|
||||
wrapperFeatures.gtk = true;
|
||||
};
|
||||
nixpkgs = {
|
||||
overlays = [
|
||||
];
|
||||
|
@ -56,20 +58,18 @@ in
|
|||
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
|
||||
};
|
||||
networking = {
|
||||
hostName = "${myHostName}";
|
||||
hostName = "${globals.myHostName}";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
users.users = {
|
||||
"${stevenUserName}" = {
|
||||
"${globals.myUserName}" = {
|
||||
initialPassword = "stevenpassword";
|
||||
isNormalUser = true;
|
||||
openssh.authorizedKeys.keys = [
|
||||
];
|
||||
packages = with pkgs; [
|
||||
nh
|
||||
neovim
|
||||
gitFull
|
||||
];
|
||||
nh
|
||||
];
|
||||
extraGroups = ["wheel"];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue