Include NixOS into configuration #2
@ -37,8 +37,8 @@
|
|||||||
hostname = "sephiroth";
|
hostname = "sephiroth";
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./modules/common/nix-core.nix
|
./modules/common/core.nix
|
||||||
./modules/common/host-users.nix
|
./modules/common/users.nix
|
||||||
./modules/machine/sephiroth/configuration.nix
|
./modules/machine/sephiroth/configuration.nix
|
||||||
./modules/machine/sephiroth/apps.nix
|
./modules/machine/sephiroth/apps.nix
|
||||||
|
|
||||||
@ -62,8 +62,8 @@
|
|||||||
modules = [
|
modules = [
|
||||||
nix-flatpak.nixosModules.nix-flatpak
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
nix-ld.nixosModules.nix-ld
|
nix-ld.nixosModules.nix-ld
|
||||||
./modules/common/nix-core.nix
|
./modules/common/core.nix
|
||||||
./modules/common/host-users.nix
|
./modules/common/users.nix
|
||||||
./modules/machine/cloud/hardware-configuration.nix
|
./modules/machine/cloud/hardware-configuration.nix
|
||||||
./modules/machine/cloud/configuration.nix
|
./modules/machine/cloud/configuration.nix
|
||||||
|
|
||||||
|
@ -9,13 +9,6 @@
|
|||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
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;
|
nix.package = pkgs.nix;
|
||||||
|
|
||||||
# do garbage collection weekly to keep disk usage low
|
# do garbage collection weekly to keep disk usage low
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
userName,
|
userName,
|
||||||
hostname,
|
hostname,
|
||||||
@ -15,13 +16,21 @@
|
|||||||
|
|
||||||
# Set up user accounts
|
# Set up user accounts
|
||||||
# Don't forget to set a password with ‘passwd’!
|
# Don't forget to set a password with ‘passwd’!
|
||||||
users.users."${userName}" = {
|
users.users."${userName}" = lib.mkMerge [
|
||||||
home =
|
{
|
||||||
if pkgs.stdenv.isDarwin
|
home =
|
||||||
then "/Users/${userName}"
|
if pkgs.stdenv.isDarwin
|
||||||
else "/home/${userName}";
|
then "/Users/${userName}"
|
||||||
description = userName;
|
else "/home/${userName}";
|
||||||
};
|
description = userName;
|
||||||
|
}
|
||||||
|
|
||||||
|
(lib.mkIf (pkgs.stdenv.isLinux) {
|
||||||
|
group = "${userName}";
|
||||||
|
isNormalUser = true;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
users.groups.wyatt = {};
|
users.groups.wyatt = {};
|
||||||
|
|
||||||
nix.settings.trusted-users = [userName];
|
nix.settings.trusted-users = [userName];
|
@ -200,10 +200,10 @@
|
|||||||
arguments = "-v -o pw";
|
arguments = "-v -o pw";
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users."${userName}" = {
|
# users.users."${userName}" = {
|
||||||
group = "${userName}";
|
# group = "${userName}";
|
||||||
isNormalUser = true;
|
# isNormalUser = true;
|
||||||
};
|
# };
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
}
|
}
|
||||||
|
@ -168,6 +168,12 @@
|
|||||||
pkgs.bash
|
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;
|
system.stateVersion = 5;
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
|
Loading…
Reference in New Issue
Block a user