chore: work on modularization of config
This commit is contained in:
parent
ab897f750d
commit
850454a6c6
16 changed files with 300 additions and 94 deletions
|
|
@ -34,7 +34,20 @@
|
|||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
default_modules = [
|
||||
|
||||
hypr_config = { monitor = [ "" ]; workspace = [ "" ]; };
|
||||
in
|
||||
{
|
||||
# TODO put actual configuration of profiles somewhere else
|
||||
# TODO: deduplicate
|
||||
homeConfigurations."marmo" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [ ./hardware/marmo/default.nix ];
|
||||
};
|
||||
nixosConfigurations."overheating" = nixpkgs.lib.nixosSystem {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
./hardware/overheating/default.nix
|
||||
./base/default.nix
|
||||
hyprland.nixosModules.default
|
||||
home-manager.nixosModules.home-manager
|
||||
|
|
@ -56,31 +69,49 @@
|
|||
hyprland.homeManagerModules.default
|
||||
anyrun.homeManagerModules.default
|
||||
ironbar.homeManagerModules.default
|
||||
./hardware/overheating/base_config.nix
|
||||
./programs/hyprland/default.nix
|
||||
nix-flatpak.homeManagerModules.nix-flatpak
|
||||
./programs/flatpak.nix
|
||||
];
|
||||
|
||||
home-manager.users.dashie.home.stateVersion = "24.05";
|
||||
}
|
||||
];
|
||||
in
|
||||
{
|
||||
# TODO put actual configuration of profiles somewhere else
|
||||
homeConfigurations."marmo" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs default_modules;
|
||||
modules = [ ./hardware/marmo/default.nix ];
|
||||
};
|
||||
homeConfigurations."overheating" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs default_modules;
|
||||
modules = [ ./hardware/overheating/default.nix ];
|
||||
];
|
||||
};
|
||||
nixosConfigurations."spaceship" = nixpkgs.lib.nixosSystem {
|
||||
inherit pkgs default_modules;
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
./hardware/spaceship/default.nix
|
||||
./hardware/streamdeck.nix
|
||||
./programs/gaming/default.nix
|
||||
./base/default.nix
|
||||
hyprland.nixosModules.default
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
xdg.portal.config.common.default = "*";
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-hyprland
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.users.dashie.imports = [
|
||||
{
|
||||
_module = { args = { inherit self inputs; }; };
|
||||
}
|
||||
./programs/default.nix
|
||||
hyprland.homeManagerModules.default
|
||||
anyrun.homeManagerModules.default
|
||||
ironbar.homeManagerModules.default
|
||||
./hardware/spaceship/base_config.nix
|
||||
./programs/hyprland/default.nix
|
||||
nix-flatpak.homeManagerModules.nix-flatpak
|
||||
./programs/flatpak.nix
|
||||
];
|
||||
home-manager.users.dashie.home.stateVersion = "24.05";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue