feat: add global variables for nix configs
This commit is contained in:
parent
32e2e974ca
commit
e946124478
9 changed files with 59 additions and 17 deletions
hosts
|
@ -10,6 +10,11 @@
|
|||
./modules/nix-gaming.nix
|
||||
];
|
||||
|
||||
services.hostvars = {
|
||||
username = "matt";
|
||||
fontSize = 10;
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "binto";
|
||||
networkmanager.enable = true;
|
||||
|
@ -75,7 +80,6 @@
|
|||
../../modules/dconf.nix
|
||||
../../modules/firefox
|
||||
];
|
||||
programs.alacritty.settings.font.size = 10;
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
};
|
||||
|
|
|
@ -13,6 +13,12 @@
|
|||
./modules/security.nix
|
||||
];
|
||||
|
||||
services.hostvars = {
|
||||
username = "matt";
|
||||
configDir = "/home/matt/.nix/hosts/wim/config";
|
||||
fontSize = 12.5;
|
||||
};
|
||||
|
||||
users.users.matt = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "input" "uinput" "adm" "mlocate" "video" "libvirtd" ];
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
{ pkgs, config, hyprland, hyprgrass, ags, nixpkgs-wayland, ... }: let
|
||||
waypkgs = nixpkgs-wayland.packages.x86_64-linux;
|
||||
|
||||
configDir = (import ../vars.nix).configDir;
|
||||
configDir = config.services.hostvars.configDir;
|
||||
symlink = config.lib.file.mkOutOfStoreSymlink;
|
||||
|
||||
gset = pkgs.gsettings-desktop-schemas;
|
||||
polkit = pkgs.plasma5Packages.polkit-kde-agent;
|
||||
in
|
||||
{
|
||||
in {
|
||||
imports = [
|
||||
ags.homeManagerModules.default
|
||||
];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ pkgs, lib, ... }: let
|
||||
font-size = 12;
|
||||
{ pkgs, lib, config, ... }: let
|
||||
fontSize = config.services.hostvars.fontSize;
|
||||
dracula-xresources = pkgs.fetchFromGitHub {
|
||||
owner = "dracula";
|
||||
repo = "xresources";
|
||||
|
@ -35,7 +35,7 @@ in
|
|||
|
||||
font = {
|
||||
name = "Sans Serif";
|
||||
size = font-size;
|
||||
size = fontSize;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -53,8 +53,8 @@ in
|
|||
xdg.configFile = let
|
||||
qtconf = ''
|
||||
[Fonts]
|
||||
fixed="Sans Serif,${lib.strings.floatToString font-size},-1,5,50,0,0,0,0,0"
|
||||
general="Sans Serif,${lib.strings.floatToString font-size},-1,5,50,0,0,0,0,0"
|
||||
fixed="Sans Serif,${lib.strings.floatToString fontSize},-1,5,50,0,0,0,0,0"
|
||||
general="Sans Serif,${lib.strings.floatToString fontSize},-1,5,50,0,0,0,0,0"
|
||||
|
||||
[Appearance]
|
||||
icon_theme=Flat-Remix-Violet-Dark
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ config, pkgs, ... }: let
|
||||
configDir = (import ../vars.nix).configDir;
|
||||
configDir = config.services.hostvars.configDir;
|
||||
symlink = config.lib.file.mkOutOfStoreSymlink;
|
||||
in
|
||||
{
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
configDir = "/home/matt/.nix/hosts/wim/config";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue