hosts: move local modules to their own directory inside specific host
This commit is contained in:
parent
c233c1a420
commit
1474053f43
6 changed files with 19 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
self,
|
self,
|
||||||
pkgs,
|
|
||||||
specialArgs,
|
specialArgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
@ -8,6 +7,7 @@
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./modules
|
||||||
|
|
||||||
"${mod}"
|
"${mod}"
|
||||||
"${mod}/hardware/uni-sync.nix"
|
"${mod}/hardware/uni-sync.nix"
|
||||||
|
@ -27,8 +27,6 @@ in {
|
||||||
extraSpecialArgs = specialArgs;
|
extraSpecialArgs = specialArgs;
|
||||||
};
|
};
|
||||||
|
|
||||||
theme.wallpaper = ../../wallpapers/lucy-edgerunners-wallpaper.jpg;
|
|
||||||
|
|
||||||
networking.hostName = "solaire";
|
networking.hostName = "solaire";
|
||||||
environment.variables.FLAKE = "/home/nezia/.dotfiles";
|
environment.variables.FLAKE = "/home/nezia/.dotfiles";
|
||||||
}
|
}
|
||||||
|
|
3
hosts/solaire/modules/default.nix
Normal file
3
hosts/solaire/modules/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
imports = [./theme.nix];
|
||||||
|
}
|
3
hosts/solaire/modules/theme.nix
Normal file
3
hosts/solaire/modules/theme.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
theme.wallpaper = ../../wallpapers/lucy-edgerunners-wallpaper.jpg;
|
||||||
|
}
|
|
@ -7,6 +7,7 @@
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./modules
|
||||||
|
|
||||||
"${mod}"
|
"${mod}"
|
||||||
"${mod}/core/lanzaboote.nix"
|
"${mod}/core/lanzaboote.nix"
|
||||||
|
|
3
hosts/vamos/modules/default.nix
Normal file
3
hosts/vamos/modules/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
imports = [./theme.nix];
|
||||||
|
}
|
8
hosts/vamos/modules/theme.nix
Normal file
8
hosts/vamos/modules/theme.nix
Normal file
|
@ -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=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue