78 lines
2.3 KiB
Nix
Executable file
78 lines
2.3 KiB
Nix
Executable file
{ inputs, outputs, config, pkgs, flakePath, disksPath, primaryUser, homeDir, ...
|
|
}:
|
|
|
|
let hostname = "${config.networking.hostName}";
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
## Modules
|
|
inputs.home-manager.nixosModules.default # home-manager module
|
|
|
|
## User themes -
|
|
## to set a different theme for a user,
|
|
## create a theme by copying an existing
|
|
## one as a template and import it here,
|
|
## then - I haven't figured it out yet :D
|
|
#../resources # eventually have all theme imports automated
|
|
#../resources/themes # base theme options
|
|
#../resources/themes/SerenityOS.nix # default theme
|
|
|
|
];
|
|
|
|
## Primary user configuration -
|
|
## to create additional users, copy all options
|
|
## below to a new file akin to `u-username.nix`,
|
|
## or `u-username/default.nix` with more modules,
|
|
## making sure to replace all instances of
|
|
## `${primaryUser}` with the new username.
|
|
|
|
## System-level user declarations
|
|
users.users = {
|
|
${primaryUser} = {
|
|
description = "Serenity Amalgam";
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" "networkmanager" "gamemode" "audio" ];
|
|
## be sure to change this with 'passwd'
|
|
initialPassword = "password";
|
|
## A catgirl's favourite shell
|
|
shell = pkgs.fish;
|
|
};
|
|
};
|
|
|
|
## home-manager configuration
|
|
programs.home-manager.enable = true;
|
|
home-manager = {
|
|
verbose = true; # enables verbose output on activation
|
|
extraSpecialArgs = { # passes in specialArgs from flake.nix
|
|
inherit inputs outputs;
|
|
inherit flakePath disksPath;
|
|
inherit primaryUser homeDir;
|
|
inherit hostname;
|
|
};
|
|
users = {
|
|
${primaryUser} = {
|
|
imports = [
|
|
## Home configuration -
|
|
## currently all users share the same home
|
|
## configuration, though each has separate
|
|
## home directories. Additional modules
|
|
## can be declared alongside `u-username/default.nix`
|
|
## and then imported in this section.
|
|
./programs
|
|
];
|
|
home = {
|
|
username = "${primaryUser}";
|
|
homeDirectory = "${homeDir}";
|
|
};
|
|
};
|
|
};
|
|
backupFileExtension = "backup"; # prevents errors on activation
|
|
useGlobalPkgs = true; # ensures all packages declared follow -
|
|
useUserPackages = true; # the same nix-channel as in the flake.nix
|
|
};
|
|
|
|
system.user.startServices = "sd-switch";
|
|
|
|
}
|