From 1474053f43138f67a3921ce02581960edf3e64ee Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Tue, 22 Oct 2024 15:01:05 +0200 Subject: [PATCH] hosts: move local modules to their own directory inside specific host --- hosts/solaire/default.nix | 4 +--- hosts/solaire/modules/default.nix | 3 +++ hosts/solaire/modules/theme.nix | 3 +++ hosts/vamos/default.nix | 1 + hosts/vamos/modules/default.nix | 3 +++ hosts/vamos/modules/theme.nix | 8 ++++++++ 6 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 hosts/solaire/modules/default.nix create mode 100644 hosts/solaire/modules/theme.nix create mode 100644 hosts/vamos/modules/default.nix create mode 100644 hosts/vamos/modules/theme.nix diff --git a/hosts/solaire/default.nix b/hosts/solaire/default.nix index 2f0b32d..11817b8 100644 --- a/hosts/solaire/default.nix +++ b/hosts/solaire/default.nix @@ -1,6 +1,5 @@ { self, - pkgs, specialArgs, ... }: let @@ -8,6 +7,7 @@ in { imports = [ ./hardware-configuration.nix + ./modules "${mod}" "${mod}/hardware/uni-sync.nix" @@ -27,8 +27,6 @@ in { extraSpecialArgs = specialArgs; }; - theme.wallpaper = ../../wallpapers/lucy-edgerunners-wallpaper.jpg; - networking.hostName = "solaire"; environment.variables.FLAKE = "/home/nezia/.dotfiles"; } diff --git a/hosts/solaire/modules/default.nix b/hosts/solaire/modules/default.nix new file mode 100644 index 0000000..a661430 --- /dev/null +++ b/hosts/solaire/modules/default.nix @@ -0,0 +1,3 @@ +{ + imports = [./theme.nix]; +} diff --git a/hosts/solaire/modules/theme.nix b/hosts/solaire/modules/theme.nix new file mode 100644 index 0000000..a9e9745 --- /dev/null +++ b/hosts/solaire/modules/theme.nix @@ -0,0 +1,3 @@ +{ + theme.wallpaper = ../../wallpapers/lucy-edgerunners-wallpaper.jpg; +} diff --git a/hosts/vamos/default.nix b/hosts/vamos/default.nix index e120ef9..e70867f 100644 --- a/hosts/vamos/default.nix +++ b/hosts/vamos/default.nix @@ -7,6 +7,7 @@ in { imports = [ ./hardware-configuration.nix + ./modules "${mod}" "${mod}/core/lanzaboote.nix" diff --git a/hosts/vamos/modules/default.nix b/hosts/vamos/modules/default.nix new file mode 100644 index 0000000..a661430 --- /dev/null +++ b/hosts/vamos/modules/default.nix @@ -0,0 +1,3 @@ +{ + imports = [./theme.nix]; +} diff --git a/hosts/vamos/modules/theme.nix b/hosts/vamos/modules/theme.nix new file mode 100644 index 0000000..3576304 --- /dev/null +++ b/hosts/vamos/modules/theme.nix @@ -0,0 +1,8 @@ +{pkgs, ...}: { + theme = { + wallpaper = pkgs.fetchurl { + url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/e0cf0eb237dc5baba86661a3572b20a6183c1876/wallpapers/nix-wallpaper-nineish-catppuccin-frappe.png?raw=true"; + hash = "sha256-/HAtpGwLxjNfJvX5/4YZfM8jPNStaM3gisK8+ImRmQ4="; + }; + }; +}