refactor: move host declaration to ./hosts
This commit is contained in:
parent
1ca38fd6e0
commit
b3500b6772
7 changed files with 51 additions and 30 deletions
24
flake.nix
24
flake.nix
|
@ -23,6 +23,8 @@
|
||||||
outputs =
|
outputs =
|
||||||
inputs:
|
inputs:
|
||||||
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
|
imports = [ ./hosts ];
|
||||||
|
|
||||||
systems = [
|
systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
|
@ -60,28 +62,6 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
# TODO: move that somewhere else
|
|
||||||
nixosConfigurations = {
|
|
||||||
marr = lib.my.mkSystem {
|
|
||||||
hostname = "marr";
|
|
||||||
system = "x86_64-linux";
|
|
||||||
extraModules = [
|
|
||||||
#inputs.nixos-hardware.nixosModules.dell-xps-15-9510-nvidia
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
brontes = lib.my.mkSystem {
|
|
||||||
hostname = "brontes";
|
|
||||||
system = "x86_64-linux";
|
|
||||||
};
|
|
||||||
|
|
||||||
styrak = lib.my.mkSystem {
|
|
||||||
hostname = "styrak";
|
|
||||||
system = "x86_64-linux";
|
|
||||||
extraModules = [ inputs.disko.nixosModules.disko ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1,8 @@
|
||||||
# This file contains default settings used across different systems
|
# This file contains default settings used across different systems
|
||||||
{ imports = [ ./ssh ]; }
|
{
|
||||||
|
imports = [
|
||||||
|
./ssh
|
||||||
|
./hypridle
|
||||||
|
./hyprland
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
|
@ -15,9 +15,7 @@
|
||||||
../../home/rofi
|
../../home/rofi
|
||||||
../../home/swaync
|
../../home/swaync
|
||||||
../../home/waybar
|
../../home/waybar
|
||||||
../../home/hyprland
|
|
||||||
../../home/hyprlock
|
../../home/hyprlock
|
||||||
../../home/hypridle
|
|
||||||
../../home/hyprpaper
|
../../home/hyprpaper
|
||||||
../../home/themes/catppuccin.nix
|
../../home/themes/catppuccin.nix
|
||||||
../../home
|
../../home
|
||||||
|
|
27
hosts/default.nix
Normal file
27
hosts/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{ inputs, ... }:
|
||||||
|
let
|
||||||
|
inherit (inputs.self) lib;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
flake.nixosConfigurations = {
|
||||||
|
marr = lib.my.mkSystem {
|
||||||
|
hostname = "marr";
|
||||||
|
system = "x86_64-linux";
|
||||||
|
extraModules = [
|
||||||
|
#inputs.nixos-hardware.nixosModules.dell-xps-15-9510-nvidia
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
brontes = lib.my.mkSystem {
|
||||||
|
hostname = "brontes";
|
||||||
|
system = "x86_64-linux";
|
||||||
|
extraModules = [ inputs.agenix.nixosModules.default ];
|
||||||
|
};
|
||||||
|
|
||||||
|
styrak = lib.my.mkSystem {
|
||||||
|
hostname = "styrak";
|
||||||
|
system = "x86_64-linux";
|
||||||
|
extraModules = [ inputs.disko.nixosModules.disko ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -46,12 +46,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
#: Virtualisation {{{
|
#: Virtualisation {{{
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker = {
|
||||||
virtualisation.docker.enableOnBoot = false;
|
|
||||||
virtualisation.docker.rootless = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
setSocketVariable = true;
|
enableOnBoot = false;
|
||||||
|
rootless = {
|
||||||
|
enable = true;
|
||||||
|
setSocketVariable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
programs.virt-manager.enable = true;
|
programs.virt-manager.enable = true;
|
||||||
#: }}}
|
#: }}}
|
||||||
|
|
|
@ -28,5 +28,13 @@
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMvPqWPXEUOSMGMIRmirQfbrzq//NkPlEI2TmFpIkSfw" # brontes
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMvPqWPXEUOSMGMIRmirQfbrzq//NkPlEI2TmFpIkSfw" # brontes
|
||||||
];
|
];
|
||||||
|
|
||||||
|
virtualisation.docker = {
|
||||||
|
enableOnBoot = false;
|
||||||
|
rootless = {
|
||||||
|
enable = true;
|
||||||
|
setSocketVariable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
# Add env vars to calibre so they may get propagated to a plugin that needs them
|
# Add env vars to calibre so they may get propagated to a plugin that needs them
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue