import some things i forgot to + set passwords

This commit is contained in:
minish 2024-12-27 17:56:59 -05:00
parent a5c08a100a
commit 00c368e282
Signed by: min
SSH Key Fingerprint: SHA256:NFjjdbkd6u7aoMlcrDCVvz6o2UBtlAuPm8IQ2vhZ3Fg
4 changed files with 18 additions and 11 deletions

View File

@ -35,7 +35,7 @@
flake = let flake = let
hosts = import ./hosts {inherit inputs;}; hosts = import ./hosts {inherit inputs;};
in { in {
inherit (hosts) nixosConfigurations homeConfigurations; inherit (hosts) nixosConfigurations;
}; };
systems = ["x86_64-linux"]; systems = ["x86_64-linux"];

5
homes/min/default.nix Normal file
View File

@ -0,0 +1,5 @@
{pkgs, ...}: {
home.packages = [pkgs.fastfetch];
home.stateVersion = "24.11";
}

View File

@ -21,15 +21,11 @@
}; };
} }
# ../modules ../modules
]; ];
}; };
}) })
systems); systems);
makeHomeConfigurations = systems:
builtins.throw "todo";
in { in {
nixosConfigurations = makeNixosConfigurations systems; nixosConfigurations = makeNixosConfigurations systems;
homeConfigurations = makeHomeConfigurations systems;
} }

View File

@ -1,10 +1,11 @@
{...}: { {config, ...}: {
imports = [ imports = [
./audio.nix ./audio.nix
./bootloader.nix ./bootloader.nix
./disk-config.nix ./disk-config.nix
./hardware.nix ./hardware.nix
./mounts.nix ./mounts.nix
./nebula.nix
./secrets.nix ./secrets.nix
]; ];
@ -27,10 +28,15 @@
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
services.libinput.enable = true; services.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd. # Define a user account.
users.users.min = { users.users = {
isNormalUser = true; root.hashedPasswordFile = config.sops.secrets."root-pw".path;
extraGroups = ["wheel"]; # Enable sudo for the user.
min = {
isNormalUser = true;
extraGroups = ["wheel"]; # Enable sudo for the user.
hashedPasswordFile = config.sops.secrets."user-pw".path;
};
}; };
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are