Added new user, made home folder optional, moved hyprland system config to a separate file

This commit is contained in:
Aleksandr Lebedev 2024-12-20 10:18:05 +01:00
parent 87ef397bec
commit b591fcc345
12 changed files with 278 additions and 81 deletions

View file

@ -1,15 +1,15 @@
{ config, pkgs, stylix, hwconfig, first-nixos-install, username, inputs, ... }:
{ config, lib, pkgs, stylix, hwconfig, first-nixos-install, username, inputs, ... }:
let
in
{
imports =
[
./modules/hyprland
./modules/nixvim
./modules/fastfetch
./homes/${username}
] ++ (if hwconfig.useImpermanence then [ (import ./modules/impermanence/home.nix { inherit username; inherit inputs; } ) ] else []);
] ++ (if hwconfig.useImpermanence then [ (import ./modules/impermanence/home.nix { inherit username; inherit inputs; } ) ] else [])
++ (if config.programs.hyprland.enable then [./modules/hyprland/home.nix] else [])
++ lib.optional (builtins.pathExists ./homes/${username}) ./homes/${username};
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = username;