Flake : Move modules from configurations to flake.nix.

This commit is contained in:
Dmitry Voronin 2024-01-31 01:26:06 +03:00
parent f789d82b16
commit 7f4b4ba3d3
6 changed files with 65 additions and 51 deletions

View file

@ -3,27 +3,87 @@
inputs.nixpkgs.url = "github:nixos/nixpkgs/952b64947e0b1300600dda555db35d09122b9612"; inputs.nixpkgs.url = "github:nixos/nixpkgs/952b64947e0b1300600dda555db35d09122b9612";
outputs = { self, nixpkgs }@inputs: { outputs = { self, nixpkgs }@inputs: {
nixosConfigurations.dasha = nixpkgs.lib.nixosSystem { nixosConfigurations.dasha = nixpkgs.lib.nixosSystem {
modules = [ ./host/dasha/Configuration.nix ]; modules = [
./host/dasha/Configuration.nix
./module/AmdGpu.nix
./module/Common.nix
./module/Dasha.nix
./module/DockerRootless.nix
./module/Flatpak.nix
./module/Gnome.nix
./module/PowersaveIntel.nix
./module/Print.nix
./module/Sshd.nix
];
specialArgs.inputs = inputs; specialArgs.inputs = inputs;
system = "x86_64-linux"; system = "x86_64-linux";
}; };
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem { nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
modules = [ ./host/desktop/Configuration.nix ]; modules = [
./host/desktop/Configuration.nix
./module/AmdGpu.nix
./module/Common.nix
./module/DockerRootless.nix
./module/Flatpak.nix
./module/Gnome.nix
./module/PowersaveAmd.nix
./module/Print.nix
./module/Sshd.nix
./module/Voronind.nix
];
specialArgs.inputs = inputs; specialArgs.inputs = inputs;
system = "x86_64-linux"; system = "x86_64-linux";
}; };
nixosConfigurations.home = nixpkgs.lib.nixosSystem { nixosConfigurations.home = nixpkgs.lib.nixosSystem {
modules = [ ./host/home/Configuration.nix ]; modules = [
./host/home/Configuration.nix
./module/AmdGpu.nix
./module/Common.nix
./module/Docker.nix
./module/Flatpak.nix
./module/Ftpd.nix
./module/Gnome.nix
./module/PowersaveAmd.nix
./module/Sshd.nix
./module/Voronind.nix
];
specialArgs.inputs = inputs; specialArgs.inputs = inputs;
system = "x86_64-linux"; system = "x86_64-linux";
}; };
nixosConfigurations.laptop = nixpkgs.lib.nixosSystem { nixosConfigurations.laptop = nixpkgs.lib.nixosSystem {
modules = [ ./host/laptop/Configuration.nix ]; modules = [
./host/laptop/Configuration.nix
./module/AmdGpu.nix
./module/Common.nix
./module/Dasha.nix
./module/DockerRootless.nix
./module/Flatpak.nix
./module/Gnome.nix
./module/PowersaveAmd.nix
./module/Print.nix
./module/Sshd.nix
./module/Voronind.nix
];
specialArgs.inputs = inputs; specialArgs.inputs = inputs;
system = "x86_64-linux"; system = "x86_64-linux";
}; };
nixosConfigurations.work = nixpkgs.lib.nixosSystem { nixosConfigurations.work = nixpkgs.lib.nixosSystem {
modules = [ ./host/work/Configuration.nix ]; modules = [
./host/work/Configuration.nix
./module/Common.nix
./module/DockerRootless.nix
./module/Flatpak.nix
./module/Gnome.nix
./module/PowersaveIntel.nix
./module/Powerlimit.nix
./module/Print.nix
./module/Sshd.nix
./module/Voronind.nix
];
specialArgs.inputs = inputs; specialArgs.inputs = inputs;
system = "x86_64-linux"; system = "x86_64-linux";
}; };

View file

@ -4,15 +4,6 @@
imports = [ imports = [
./HardwareConfiguration.nix ./HardwareConfiguration.nix
./Tablet.nix ./Tablet.nix
../../module/Common.nix
../../module/PowersaveIntel.nix
../../module/AmdGpu.nix
../../module/Print.nix
../../module/Gnome.nix
../../module/Dasha.nix
../../module/Flatpak.nix
../../module/DockerRootless.nix
../../module/Sshd.nix
]; ];
# Network. # Network.

View file

@ -3,15 +3,6 @@
{ {
imports = [ imports = [
./HardwareConfiguration.nix ./HardwareConfiguration.nix
../../module/Common.nix
../../module/PowersaveAmd.nix
../../module/AmdGpu.nix
../../module/Print.nix
../../module/Gnome.nix
../../module/Voronind.nix
../../module/Flatpak.nix
../../module/DockerRootless.nix
../../module/Sshd.nix
]; ];
# Network. # Network.

View file

@ -7,15 +7,6 @@
./Nextcloud.nix ./Nextcloud.nix
./PhotosProcess.nix ./PhotosProcess.nix
./YandexMusic.nix ./YandexMusic.nix
../../module/Common.nix
../../module/Flatpak.nix
../../module/Voronind.nix
../../module/Gnome.nix
../../module/Ftpd.nix
../../module/PowersaveAmd.nix
../../module/AmdGpu.nix
../../module/Docker.nix
../../module/Sshd.nix
]; ];
# Network. # Network.

View file

@ -4,16 +4,6 @@
imports = [ imports = [
./HardwareConfiguration.nix ./HardwareConfiguration.nix
# ./MsiKeyboard.nix # ./MsiKeyboard.nix
../../module/Common.nix
../../module/AmdGpu.nix
../../module/PowersaveAmd.nix
../../module/Print.nix
../../module/Gnome.nix
../../module/Voronind.nix
../../module/Dasha.nix
../../module/Flatpak.nix
../../module/DockerRootless.nix
../../module/Sshd.nix
]; ];
# Network. # Network.

View file

@ -4,15 +4,6 @@
imports = [ imports = [
./HardwareConfiguration.nix ./HardwareConfiguration.nix
./Fprint.nix ./Fprint.nix
../../module/Common.nix
../../module/PowersaveIntel.nix
../../module/Powerlimit.nix
../../module/Print.nix
../../module/Gnome.nix
../../module/Voronind.nix
../../module/Flatpak.nix
../../module/DockerRootless.nix
../../module/Sshd.nix
]; ];
# Network. # Network.