more tidying
This commit is contained in:
parent
4b2985f93b
commit
3e74692a79
5 changed files with 14 additions and 77 deletions
|
|
@ -1,54 +0,0 @@
|
|||
{ self, inputs, ... }: {
|
||||
|
||||
# this module defines all hosts and allocates users to those hosts
|
||||
flake.nixosConfigurations =
|
||||
let
|
||||
|
||||
# users to include on machine
|
||||
username = "serenity";
|
||||
#username2 = "foobar";
|
||||
|
||||
# shorten paths
|
||||
inherit (inputs.nixpkgs.lib) nixosSystem;
|
||||
homeImports = import "${self}/home/profiles";
|
||||
mod = "${self}/modules/system";
|
||||
# get the basic config to build on top of
|
||||
inherit (import mod) base;
|
||||
# get these into the module system
|
||||
specialArgs = { inherit inputs self; };
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
# declare hosts here
|
||||
hades = nixosSystem {
|
||||
inherit specialArgs;
|
||||
modules = [
|
||||
|
||||
# specify host config directory
|
||||
./hades
|
||||
|
||||
# users to include on machine
|
||||
"${mod}/users/u-${username}.nix"
|
||||
#"${mod}/users/u-${username2}.nix"
|
||||
|
||||
# home manager
|
||||
"${mod}/misc/hm-parts.nix"
|
||||
{
|
||||
home-manager = {
|
||||
|
||||
# misc. hm settings
|
||||
extraSpecialArgs = specialArgs;
|
||||
backupFileExtension = ".hm-backup";
|
||||
|
||||
# user specific hm configurations present on machine
|
||||
users.${username}.imports = homeImports."${username}";
|
||||
#users.${username2}.imports = homeImports."${username2}";
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -1,9 +1,10 @@
|
|||
{
|
||||
self,
|
||||
inputs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{ self, inputs, config, ... }:
|
||||
|
||||
let
|
||||
|
||||
# default username here
|
||||
username = "serenity";
|
||||
|
||||
{
|
||||
|
||||
# defines the hades specific config modules
|
||||
|
|
@ -22,13 +23,13 @@
|
|||
# extra modules
|
||||
self.modules.nixos.gaming
|
||||
|
||||
# users to include on host
|
||||
self.modules.nixos.serenity
|
||||
# home manager and home manager imports
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.backupFileExtension = "bak";
|
||||
home-manager.users.serenity = {
|
||||
imports = [
|
||||
config.flake.homeModules.core-home
|
||||
config.flake.homeModules.desktop
|
||||
];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue