flake: cleanup main file
This commit is contained in:
parent
26f1219d85
commit
c07b2f920e
4 changed files with 38 additions and 41 deletions
47
flake.nix
47
flake.nix
|
|
@ -103,33 +103,9 @@
|
||||||
common_modules = [
|
common_modules = [
|
||||||
{ nixpkgs.pkgs = pkgs; }
|
{ nixpkgs.pkgs = pkgs; }
|
||||||
./system/configuration.nix
|
./system/configuration.nix
|
||||||
./system/sops.nix
|
|
||||||
./system/greetd.nix
|
|
||||||
{ login-manager.greetd.enable = desktop == "sway"; }
|
{ login-manager.greetd.enable = desktop == "sway"; }
|
||||||
|
|
||||||
inputs.sops-nix.nixosModules.default
|
{ home-manager.extraSpecialArgs = specialArgs; }
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
inputs.disko.nixosModules.disko
|
|
||||||
(
|
|
||||||
{ config, ... }:
|
|
||||||
{
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.users.lelgenio = {
|
|
||||||
my = config.my;
|
|
||||||
imports = [
|
|
||||||
./user/home.nix
|
|
||||||
inputs.sops-nix.homeManagerModules.sops
|
|
||||||
];
|
|
||||||
};
|
|
||||||
home-manager.backupFileExtension = "bkp";
|
|
||||||
# Optionally, use home-manager.extraSpecialArgs to pass
|
|
||||||
# arguments to home.nix
|
|
||||||
home-manager.extraSpecialArgs = {
|
|
||||||
inherit inputs;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
)
|
|
||||||
]
|
]
|
||||||
++ lib.optional (desktop == "gnome") ./system/gnome.nix
|
++ lib.optional (desktop == "gnome") ./system/gnome.nix
|
||||||
++ lib.optional (desktop == "kde") ./system/kde.nix;
|
++ lib.optional (desktop == "kde") ./system/kde.nix;
|
||||||
|
|
@ -141,36 +117,27 @@
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
i15 = lib.nixosSystem {
|
i15 = lib.nixosSystem {
|
||||||
inherit specialArgs;
|
inherit specialArgs;
|
||||||
modules = [ ./hosts/i15 ] ++ common_modules;
|
modules = common_modules ++ [ ./hosts/i15 ];
|
||||||
};
|
};
|
||||||
monolith = lib.nixosSystem {
|
monolith = lib.nixosSystem {
|
||||||
inherit specialArgs;
|
inherit specialArgs;
|
||||||
modules = [
|
modules = common_modules ++ [
|
||||||
./hosts/monolith
|
./hosts/monolith
|
||||||
./system/monolith-gitlab-runner.nix
|
./system/monolith-gitlab-runner.nix
|
||||||
./system/monolith-forgejo-runner.nix
|
./system/monolith-forgejo-runner.nix
|
||||||
./system/nix-serve.nix
|
./system/nix-serve.nix
|
||||||
]
|
];
|
||||||
++ common_modules;
|
|
||||||
};
|
};
|
||||||
double-rainbow = lib.nixosSystem {
|
double-rainbow = lib.nixosSystem {
|
||||||
inherit specialArgs;
|
inherit specialArgs;
|
||||||
modules = [
|
modules = common_modules ++ [
|
||||||
./hosts/double-rainbow
|
./hosts/double-rainbow
|
||||||
]
|
];
|
||||||
++ common_modules;
|
|
||||||
};
|
};
|
||||||
pixie = lib.nixosSystem {
|
pixie = lib.nixosSystem {
|
||||||
inherit specialArgs;
|
inherit specialArgs;
|
||||||
modules = [
|
modules = common_modules ++ [
|
||||||
./hosts/pixie.nix
|
./hosts/pixie.nix
|
||||||
]
|
|
||||||
++ common_modules
|
|
||||||
++ [
|
|
||||||
{
|
|
||||||
packages.media-packages.enable = lib.mkOverride 0 false;
|
|
||||||
services.flatpak.enable = lib.mkOverride 0 false;
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
phantom = lib.nixosSystem {
|
phantom = lib.nixosSystem {
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,9 @@
|
||||||
{
|
{
|
||||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
|
|
||||||
|
packages.media-packages.enable = lib.mkOverride 0 false;
|
||||||
|
services.flatpak.enable = lib.mkOverride 0 false;
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
"nvme"
|
"nvme"
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,18 @@
|
||||||
# Edit this configuration file to define what should be installed on
|
# Edit this configuration file to define what should be installed on
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
{ pkgs, config, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
inputs.sops-nix.nixosModules.default
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
inputs.disko.nixosModules.disko
|
||||||
|
|
||||||
./android.nix
|
./android.nix
|
||||||
./gaming.nix
|
./gaming.nix
|
||||||
./media-packages.nix
|
./media-packages.nix
|
||||||
|
|
@ -19,6 +28,9 @@
|
||||||
./containers.nix
|
./containers.nix
|
||||||
./nix-ld.nix
|
./nix-ld.nix
|
||||||
./network.nix
|
./network.nix
|
||||||
|
./sops.nix
|
||||||
|
./greetd.nix
|
||||||
|
./home-manager.nix
|
||||||
../settings
|
../settings
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
15
system/home-manager.nix
Normal file
15
system/home-manager.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, inputs, ... }:
|
||||||
|
{
|
||||||
|
home-manager = {
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
users.lelgenio = {
|
||||||
|
my = config.my;
|
||||||
|
imports = [
|
||||||
|
../user/home.nix
|
||||||
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
|
];
|
||||||
|
};
|
||||||
|
backupFileExtension = "bkp";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue