Refactor config paths & update host imports
• Relocates common configurations from a user-specific directory to a global hierarchy • Adds host-specific files and updates import paths for better modularity • Introduces an experimental GNOME mutter feature
|
@ -108,6 +108,10 @@ with lib.hm.gvariant;
|
||||||
num-workspaces = 3;
|
num-workspaces = 3;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"org/gnome/mutter" = {
|
||||||
|
experimental-features = [ "scale-monitor-framebuffer" ];
|
||||||
|
};
|
||||||
|
|
||||||
"org/gnome/nautilus/preferences" = {
|
"org/gnome/nautilus/preferences" = {
|
||||||
default-folder-viewer = "icon-view";
|
default-folder-viewer = "icon-view";
|
||||||
migrated-gtk-settings = true;
|
migrated-gtk-settings = true;
|
Before Width: | Height: | Size: 6.2 MiB After Width: | Height: | Size: 6.2 MiB |
Before Width: | Height: | Size: 2.9 MiB After Width: | Height: | Size: 2.9 MiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 189 KiB After Width: | Height: | Size: 189 KiB |
22
home/hosts/cloud/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
# imports = lib.flatten [
|
||||||
|
# ## Common Imports ##
|
||||||
|
# (map lib.custom.relativeToRoot [
|
||||||
|
# "home/global/common/development"
|
||||||
|
# ])
|
||||||
|
|
||||||
|
# ## Cloud Specific ##
|
||||||
|
# ./config
|
||||||
|
# ];
|
||||||
|
|
||||||
|
## Packages with no needed configs ##
|
||||||
|
# home.packages = builtins.attrValues {
|
||||||
|
# inherit (pkgs)
|
||||||
|
# ;
|
||||||
|
# };
|
||||||
|
}
|
|
@ -1,13 +1,20 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
## Required Configs ##
|
# imports = lib.flatten [
|
||||||
../common/core # required
|
# ## Common Imports ##
|
||||||
];
|
# (map lib.custom.relativeToRoot [
|
||||||
|
# "home/global/common/development"
|
||||||
|
# ])
|
||||||
|
|
||||||
|
# ## Komodo Specific ##
|
||||||
|
# ./config
|
||||||
|
# ];
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
Pool.source = config.lib.file.mkOutOfStoreSymlink "/pool";
|
Pool.source = config.lib.file.mkOutOfStoreSymlink "/pool";
|
22
home/hosts/lxc/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
# imports = lib.flatten [
|
||||||
|
# ## Common Imports ##
|
||||||
|
# (map lib.custom.relativeToRoot [
|
||||||
|
# "home/global/common/development"
|
||||||
|
# ])
|
||||||
|
|
||||||
|
# ## Proxy Specific ##
|
||||||
|
# ./config
|
||||||
|
# ];
|
||||||
|
|
||||||
|
## Packages with no needed configs ##
|
||||||
|
# home.packages = builtins.attrValues {
|
||||||
|
# inherit (pkgs)
|
||||||
|
# ;
|
||||||
|
# };
|
||||||
|
}
|
|
@ -1,14 +1,17 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = lib.flatten [
|
||||||
## Required Configs ##
|
## Common Imports ##
|
||||||
../common/core # required
|
(map lib.custom.relativeToRoot [
|
||||||
|
"home/global/common/vscode-server.nix"
|
||||||
|
])
|
||||||
|
|
||||||
## Host-specific Optional Configs ##
|
## Nix Specific ##
|
||||||
../common/optional/vscode-server.nix
|
# ./config
|
||||||
];
|
];
|
||||||
|
|
||||||
## Packages with no needed configs ##
|
## Packages with no needed configs ##
|
22
home/hosts/proxy/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
# imports = lib.flatten [
|
||||||
|
# ## Common Imports ##
|
||||||
|
# (map lib.custom.relativeToRoot [
|
||||||
|
# "home/global/common/development"
|
||||||
|
# ])
|
||||||
|
|
||||||
|
# ## Proxy Specific ##
|
||||||
|
# ./config
|
||||||
|
# ];
|
||||||
|
|
||||||
|
## Packages with no needed configs ##
|
||||||
|
# home.packages = builtins.attrValues {
|
||||||
|
# inherit (pkgs)
|
||||||
|
# ;
|
||||||
|
# };
|
||||||
|
}
|
|
@ -1,20 +1,20 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
inputs,
|
inputs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = lib.flatten [
|
||||||
## Required Configs ##
|
## Common Imports ##
|
||||||
../common/core # required
|
(map lib.custom.relativeToRoot [
|
||||||
|
"home/global/common/browsers"
|
||||||
## Optional Configs ##
|
"home/global/common/gnome"
|
||||||
../common/optional/browsers
|
"home/global/common/development"
|
||||||
../common/optional/gnome
|
"home/global/common/gaming"
|
||||||
../common/optional/development
|
"home/global/common/xdg.nix"
|
||||||
../common/optional/gaming
|
])
|
||||||
../common/optional/xdg.nix
|
|
||||||
|
|
||||||
## Rune Specific ##
|
## Rune Specific ##
|
||||||
./config
|
./config
|
39
home/hosts/vm/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = lib.flatten [
|
||||||
|
## Common Imports ##
|
||||||
|
(map lib.custom.relativeToRoot [
|
||||||
|
"home/global/common/browsers"
|
||||||
|
"home/global/common/gnome"
|
||||||
|
"home/global/common/development"
|
||||||
|
"home/global/common/vscode-server.nix"
|
||||||
|
"home/global/common/xdg.nix"
|
||||||
|
])
|
||||||
|
|
||||||
|
## VM Specific ##
|
||||||
|
# ./config
|
||||||
|
];
|
||||||
|
|
||||||
|
## Packages with no needed configs ##
|
||||||
|
home.packages = builtins.attrValues {
|
||||||
|
inherit (pkgs)
|
||||||
|
## Tools ##
|
||||||
|
inspector
|
||||||
|
foot
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
|
monitors = [
|
||||||
|
{
|
||||||
|
name = "Virtual-1";
|
||||||
|
width = 2560;
|
||||||
|
height = 1440;
|
||||||
|
refreshRate = 60;
|
||||||
|
primary = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
## Required Configs ##
|
|
||||||
../common/core # required
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
## Required Configs ##
|
|
||||||
../common/core # required
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
## Required Configs ##
|
|
||||||
../common/core # required
|
|
||||||
];
|
|
||||||
|
|
||||||
## Packages with no needed configs ##
|
|
||||||
# home.packages = builtins.attrValues {
|
|
||||||
# inherit (pkgs)
|
|
||||||
# ;
|
|
||||||
# };
|
|
||||||
}
|
|
|
@ -1,38 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
## Required Configs ##
|
|
||||||
../common/core # required
|
|
||||||
|
|
||||||
## Host-specific Optional Configs ##
|
|
||||||
../common/optional/browsers
|
|
||||||
# ../common/optional/gnome
|
|
||||||
../common/optional/hyprland
|
|
||||||
../common/optional/development
|
|
||||||
# ../common/optional/gaming
|
|
||||||
../common/optional/vscode-server.nix
|
|
||||||
../common/optional/xdg.nix # file associations
|
|
||||||
];
|
|
||||||
|
|
||||||
## Packages with no needed configs ##
|
|
||||||
home.packages = builtins.attrValues {
|
|
||||||
inherit (pkgs)
|
|
||||||
## Tools ##
|
|
||||||
inspector
|
|
||||||
foot
|
|
||||||
;
|
|
||||||
};
|
|
||||||
|
|
||||||
monitors = [
|
|
||||||
{
|
|
||||||
name = "Virtual-1";
|
|
||||||
width = 2560;
|
|
||||||
height = 1440;
|
|
||||||
refreshRate = 60;
|
|
||||||
primary = true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
7
home/users/cesar/config/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = lib.custom.scanPaths ./.;
|
||||||
|
}
|
12
home/users/cesar/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
hostSpec,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(lib.custom.relativeToRoot "home/global/core")
|
||||||
|
./config
|
||||||
|
(lib.custom.relativeToRoot "home/hosts/${hostSpec.hostName}")
|
||||||
|
];
|
||||||
|
}
|
7
home/users/gio/config/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = lib.custom.scanPaths ./.;
|
||||||
|
}
|
12
home/users/gio/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
hostSpec,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(lib.custom.relativeToRoot "home/global/core")
|
||||||
|
./config
|
||||||
|
(lib.custom.relativeToRoot "home/hosts/${hostSpec.hostName}")
|
||||||
|
];
|
||||||
|
}
|
7
home/users/toph/config/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = lib.custom.scanPaths ./.;
|
||||||
|
}
|
12
home/users/toph/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
hostSpec,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(lib.custom.relativeToRoot "home/global/core")
|
||||||
|
./config
|
||||||
|
(lib.custom.relativeToRoot "home/hosts/${hostSpec.hostName}")
|
||||||
|
];
|
||||||
|
}
|
|
@ -88,7 +88,7 @@ in
|
||||||
imports = [
|
imports = [
|
||||||
(
|
(
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
import (lib.custom.relativeToRoot "home/${username}/${hostSpec.hostName}") {
|
import (lib.custom.relativeToRoot "home/users/${username}") {
|
||||||
inherit
|
inherit
|
||||||
config
|
config
|
||||||
hostSpec
|
hostSpec
|
||||||
|
|