snowfall migration wip fixed user config
This commit is contained in:
parent
25774148e4
commit
aaf4ff29c4
8 changed files with 87 additions and 79 deletions
|
|
@ -23,14 +23,16 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs;
|
||||||
|
[
|
||||||
gdb
|
gdb
|
||||||
element-desktop
|
element-desktop
|
||||||
obs-studio
|
obs-studio
|
||||||
neovim
|
neovim
|
||||||
localsend
|
localsend
|
||||||
kdePackages.kdenlive
|
kdePackages.kdenlive
|
||||||
] ++ lib.optionals osConfig.custom.presets.gaming.enable [mcpelauncher-ui-qt];
|
]
|
||||||
|
++ lib.optionals osConfig.custom.presets.gaming.enable [mcpelauncher-ui-qt];
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
EDITOR = "emacsclient -c";
|
EDITOR = "emacsclient -c";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
{osConfig, pkgs, ...}:
|
|
||||||
{
|
{
|
||||||
|
osConfig,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
home.packages = with pkgs; [kitty-themes];
|
home.packages = with pkgs; [kitty-themes];
|
||||||
programs.fzf = {
|
programs.fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -10,7 +13,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
icons = "always";
|
icons = "always";
|
||||||
};
|
};
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = osConfig.custom.presets.workstation.enable;
|
enable = osConfig.custom.presets.workstation.enable;
|
||||||
font = {
|
font = {
|
||||||
name = "JetBrainsMono Nerd Font";
|
name = "JetBrainsMono Nerd Font";
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; rec {
|
with lib; rec {
|
||||||
mkHomeManagerConfigOpt = config: lib.${namespace}.mkOpt' types.anything {};
|
|
||||||
|
|
||||||
mkUser = {
|
mkUser = {
|
||||||
config,
|
config,
|
||||||
enable,
|
enable,
|
||||||
|
|
@ -25,7 +23,7 @@ with lib; rec {
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
enable = enable;
|
enable = enable;
|
||||||
#config = homeConfig;
|
config = homeConfig;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
users.users.${username} = mkIf enable {
|
users.users.${username} = mkIf enable {
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ with lib.${namespace}; let
|
||||||
in {
|
in {
|
||||||
options.${namespace}.hardware.framework12 = with types; {
|
options.${namespace}.hardware.framework12 = with types; {
|
||||||
enable = mkBoolOpt false "Enable hardware support for framework 12. P.s. you still need to import inputs.nixos-hardware.nixosModules.framework-12-13th-gen-intel yourself";
|
enable = mkBoolOpt false "Enable hardware support for framework 12. P.s. you still need to import inputs.nixos-hardware.nixosModules.framework-12-13th-gen-intel yourself";
|
||||||
|
imports = [inputs.nixos-hardware.nixosModules.framework-12-13th-gen-intel];
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
# Ensure that the `pinctrl_tigerlake` kernel module is loaded before `soc_button_array`.
|
# Ensure that the `pinctrl_tigerlake` kernel module is loaded before `soc_button_array`.
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ with lib.${namespace}; let
|
||||||
in {
|
in {
|
||||||
options.${namespace}.users.${username} = with types; {
|
options.${namespace}.users.${username} = with types; {
|
||||||
enable = mkBoolOpt false "Enable ${username} user";
|
enable = mkBoolOpt false "Enable ${username} user";
|
||||||
config = mkHomeManagerConfigOpt config;
|
config = mkOpt types.attrs {} "Additional home manager config for ${username}";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkUser {
|
config = mkUser {
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ with lib.${namespace}; let
|
||||||
in {
|
in {
|
||||||
options.${namespace}.users.${username} = with types; {
|
options.${namespace}.users.${username} = with types; {
|
||||||
enable = mkBoolOpt false "Enable ${username} user";
|
enable = mkBoolOpt false "Enable ${username} user";
|
||||||
config = mkHomeManagerConfigOpt config;
|
config = mkOpt types.attrs {} "Additional home manager config for ${username}";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkUser {
|
config = mkUser {
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,24 @@
|
||||||
systems,
|
systems,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
with lib;
|
niri-outputs = {
|
||||||
with lib.${namespace}; {
|
programs.niri.settings.outputs = {
|
||||||
|
"DP-1" = {
|
||||||
|
scale = 1.6;
|
||||||
|
position.x = 1600;
|
||||||
|
position.y = 0;
|
||||||
|
};
|
||||||
|
"DP-3" = {
|
||||||
|
scale = 1.6;
|
||||||
|
position.x = 0;
|
||||||
|
position.y = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
with lib;
|
||||||
|
with lib.${namespace}; {
|
||||||
facter.reportPath = ./facter.json;
|
facter.reportPath = ./facter.json;
|
||||||
systemd.network.wait-online.enable = lib.mkForce false; #facter
|
systemd.network.wait-online.enable = lib.mkForce false; #facter
|
||||||
|
|
||||||
|
|
@ -35,23 +50,12 @@ with lib.${namespace}; {
|
||||||
};
|
};
|
||||||
|
|
||||||
custom.users = {
|
custom.users = {
|
||||||
tania = enabled;
|
|
||||||
kylekrein = {
|
kylekrein = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
config = niri-outputs;
|
||||||
};
|
};
|
||||||
};
|
tania = {
|
||||||
snowfallorg.users.kylekrein.home.config = {
|
inherit (config.custom.users.kylekrein) enable config;
|
||||||
programs.niri.settings.outputs = {
|
|
||||||
"DP-1" = {
|
|
||||||
scale = 1.6;
|
|
||||||
position.x = 1600;
|
|
||||||
position.y = 0;
|
|
||||||
};
|
|
||||||
"DP-3" = {
|
|
||||||
scale = 1.6;
|
|
||||||
position.x = 0;
|
|
||||||
position.y = 0;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -75,4 +79,4 @@ with lib.${namespace}; {
|
||||||
# ======================== DO NOT CHANGE THIS ========================
|
# ======================== DO NOT CHANGE THIS ========================
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
# ======================== DO NOT CHANGE THIS ========================
|
# ======================== DO NOT CHANGE THIS ========================
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ with lib.${namespace}; let
|
||||||
in {
|
in {
|
||||||
options.${namespace}.users.${username} = with types; {
|
options.${namespace}.users.${username} = with types; {
|
||||||
enable = mkBoolOpt false "Enable ${username} user";
|
enable = mkBoolOpt false "Enable ${username} user";
|
||||||
config = mkHomeManagerConfigOpt config;
|
config = mkOpt types.attrs {} "Additional home manager config for ${username}";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkUser {
|
config = mkUser {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue