Include NixOS into configuration #2

Merged
wymiller merged 18 commits from nixos-snapshot-09092024 into master 2024-11-17 17:16:08 -06:00
5 changed files with 30 additions and 22 deletions
Showing only changes of commit 55d5cea59f - Show all commits

View File

@ -37,8 +37,8 @@
hostname = "sephiroth";
};
modules = [
./modules/common/nix-core.nix
./modules/common/host-users.nix
./modules/common/core.nix
./modules/common/users.nix
./modules/machine/sephiroth/configuration.nix
./modules/machine/sephiroth/apps.nix
@ -62,8 +62,8 @@
modules = [
nix-flatpak.nixosModules.nix-flatpak
nix-ld.nixosModules.nix-ld
./modules/common/nix-core.nix
./modules/common/host-users.nix
./modules/common/core.nix
./modules/common/users.nix
./modules/machine/cloud/hardware-configuration.nix
./modules/machine/cloud/configuration.nix

View File

@ -9,13 +9,6 @@
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Auto upgrade nix package and the daemon service.
# services.nix-daemon.enable = true;
# Use this instead of services.nix-daemon.enable if you
# don't wan't the daemon service to be managed for you.
# nix.useDaemon = true;
services.nix-daemon.enable = true;
nix.package = pkgs.nix;
# do garbage collection weekly to keep disk usage low

View File

@ -1,4 +1,5 @@
{
lib,
pkgs,
userName,
hostname,
@ -15,13 +16,21 @@
# Set up user accounts
# Don't forget to set a password with passwd!
users.users."${userName}" = {
home =
if pkgs.stdenv.isDarwin
then "/Users/${userName}"
else "/home/${userName}";
description = userName;
};
users.users."${userName}" = lib.mkMerge [
{
home =
if pkgs.stdenv.isDarwin
then "/Users/${userName}"
else "/home/${userName}";
description = userName;
}
(lib.mkIf (pkgs.stdenv.isLinux) {
group = "${userName}";
isNormalUser = true;
})
];
users.groups.wyatt = {};
nix.settings.trusted-users = [userName];

View File

@ -200,10 +200,10 @@
arguments = "-v -o pw";
};
users.users."${userName}" = {
group = "${userName}";
isNormalUser = true;
};
# users.users."${userName}" = {
# group = "${userName}";
# isNormalUser = true;
# };
system.stateVersion = "24.05";
}

View File

@ -168,6 +168,12 @@
pkgs.bash
];
# Auto upgrade nix package and the daemon service.
# services.nix-daemon.enable = true;
# Use this instead of services.nix-daemon.enable if you
# don't wan't the daemon service to be managed for you.
services.nix-daemon.enable = true;
system.stateVersion = 5;
# Set your time zone.