mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
refactor: replaced all with with builtins.attrValues
This commit is contained in:
parent
f87d465a2c
commit
b08a7694a5
12 changed files with 236 additions and 153 deletions
|
@ -65,69 +65,91 @@ let
|
||||||
in {
|
in {
|
||||||
flake.homeModules = {
|
flake.homeModules = {
|
||||||
desktop = {
|
desktop = {
|
||||||
imports = with modules; [
|
imports = builtins.attrValues {
|
||||||
brave
|
inherit
|
||||||
firefox
|
(modules)
|
||||||
misc-android
|
brave
|
||||||
misc-desktop
|
firefox
|
||||||
misc-internet
|
misc-android
|
||||||
qbittorrent
|
misc-desktop
|
||||||
vscode
|
misc-internet
|
||||||
];
|
qbittorrent
|
||||||
|
vscode
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
entertainment = {
|
entertainment = {
|
||||||
imports = with modules; [
|
imports = builtins.attrValues {
|
||||||
freetube
|
inherit
|
||||||
misc-entertainment
|
(modules)
|
||||||
mpv
|
freetube
|
||||||
steam
|
misc-entertainment
|
||||||
];
|
mpv
|
||||||
|
steam
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
productionArt = {
|
productionArt = {
|
||||||
imports = with modules; [
|
imports = builtins.attrValues {
|
||||||
misc-productionArt
|
inherit
|
||||||
];
|
(modules)
|
||||||
|
misc-productionArt
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
productionAudio = {
|
productionAudio = {
|
||||||
imports = with modules; [
|
imports = builtins.attrValues {
|
||||||
misc-productionAudio
|
inherit
|
||||||
];
|
(modules)
|
||||||
|
misc-productionAudio
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
productionVideo = {
|
productionVideo = {
|
||||||
imports = with modules; [
|
imports = builtins.attrValues {
|
||||||
misc-productionVideo
|
inherit
|
||||||
obs-studio
|
(modules)
|
||||||
];
|
misc-productionVideo
|
||||||
|
obs-studio
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
productionWriting = {
|
productionWriting = {
|
||||||
imports = with modules; [
|
imports = builtins.attrValues {
|
||||||
misc-productionWriting
|
inherit
|
||||||
];
|
(modules)
|
||||||
|
misc-productionWriting
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
shared = {
|
shared = {
|
||||||
imports = with modules; [
|
imports = builtins.attrValues {
|
||||||
bat
|
inherit
|
||||||
bottom
|
(modules)
|
||||||
direnv
|
bat
|
||||||
git
|
bottom
|
||||||
helix
|
direnv
|
||||||
home-manager
|
git
|
||||||
lazygit
|
helix
|
||||||
misc-commandLine
|
home-manager
|
||||||
misc-virtualization
|
lazygit
|
||||||
nushell
|
misc-commandLine
|
||||||
starship
|
misc-virtualization
|
||||||
wezterm
|
nushell
|
||||||
# yazi
|
starship
|
||||||
zellij
|
wezterm
|
||||||
zoxide
|
# yazi
|
||||||
];
|
|
||||||
|
zellij
|
||||||
|
zoxide
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,14 @@
|
||||||
programs = {
|
programs = {
|
||||||
obs-studio = {
|
obs-studio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = with pkgs.obs-studio-plugins; [
|
plugins = builtins.attrValues {
|
||||||
obs-tuna
|
inherit
|
||||||
obs-vkcapture
|
(pkgs.obs-studio-plugins)
|
||||||
obs-multi-rtmp
|
obs-tuna
|
||||||
];
|
obs-vkcapture
|
||||||
|
obs-multi-rtmp
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home = {
|
home = {
|
||||||
|
|
|
@ -14,20 +14,20 @@
|
||||||
# when = "textInputFocus";
|
# when = "textInputFocus";
|
||||||
# }
|
# }
|
||||||
# ];
|
# ];
|
||||||
extensions = with pkgs.vscode-extensions; [
|
extensions = builtins.attrValues {
|
||||||
eamodio.gitlens
|
inherit (pkgs.vscode-extensions.catppuccin) catppuccin-vsc;
|
||||||
catppuccin.catppuccin-vsc
|
inherit (pkgs.vscode-extensions.eamodio) gitlens;
|
||||||
james-yu.latex-workshop
|
inherit (pkgs.vscode-extensions.esbenp) prettier-vscode;
|
||||||
jnoortheen.nix-ide
|
inherit (pkgs.vscode-extensions.haskell) haskell;
|
||||||
kamadorueda.alejandra
|
inherit (pkgs.vscode-extensions.james-yu) latex-workshop;
|
||||||
mkhl.direnv
|
inherit (pkgs.vscode-extensions.jnoortheen) nix-ide;
|
||||||
pkief.material-icon-theme
|
inherit (pkgs.vscode-extensions.kamadorueda) alejandra;
|
||||||
streetsidesoftware.code-spell-checker
|
inherit (pkgs.vscode-extensions.mattn) lisp;
|
||||||
tamasfe.even-better-toml
|
inherit (pkgs.vscode-extensions.mkhl) direnv;
|
||||||
esbenp.prettier-vscode
|
inherit (pkgs.vscode-extensions.pkief) material-icon-theme;
|
||||||
mattn.lisp
|
inherit (pkgs.vscode-extensions.streetsidesoftware) code-spell-checker;
|
||||||
haskell.haskell
|
inherit (pkgs.vscode-extensions.tamasfe) even-better-toml;
|
||||||
];
|
};
|
||||||
userSettings = {
|
userSettings = {
|
||||||
"git.confirmSync" = false;
|
"git.confirmSync" = false;
|
||||||
"editor.insertSpaces" = false;
|
"editor.insertSpaces" = false;
|
||||||
|
|
|
@ -58,54 +58,67 @@ let
|
||||||
in {
|
in {
|
||||||
flake.nixosModules = {
|
flake.nixosModules = {
|
||||||
personal = {
|
personal = {
|
||||||
imports = with modules; [
|
imports = builtins.attrValues {
|
||||||
android
|
inherit
|
||||||
audio
|
(modules)
|
||||||
bluetooth
|
android
|
||||||
corectrl
|
audio
|
||||||
dconf
|
bluetooth
|
||||||
disks
|
corectrl
|
||||||
firejail
|
dconf
|
||||||
flatpak
|
disks
|
||||||
fonts
|
firejail
|
||||||
nur
|
flatpak
|
||||||
plasma
|
fonts
|
||||||
printing
|
nur
|
||||||
sddm
|
plasma
|
||||||
steam
|
printing
|
||||||
sysstat
|
sddm
|
||||||
virtualization
|
steam
|
||||||
];
|
sysstat
|
||||||
|
virtualization
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
desktop = {
|
desktop = {
|
||||||
imports = with modules; [
|
imports = builtins.attrValues {
|
||||||
syncthing
|
inherit
|
||||||
# ollama
|
(modules)
|
||||||
];
|
syncthing
|
||||||
|
# ollama
|
||||||
|
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
server = {
|
server = {
|
||||||
imports = with modules; [
|
imports = builtins.attrValues {
|
||||||
services
|
inherit
|
||||||
];
|
(modules)
|
||||||
|
services
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
shared = {
|
shared = {
|
||||||
imports = with modules; [
|
imports = builtins.attrValues {
|
||||||
accounts
|
inherit
|
||||||
doas
|
(modules)
|
||||||
environment
|
accounts
|
||||||
gvfs
|
doas
|
||||||
home-manager
|
environment
|
||||||
locale
|
gvfs
|
||||||
nix
|
home-manager
|
||||||
rsyncd
|
locale
|
||||||
sops
|
nix
|
||||||
ssh
|
rsyncd
|
||||||
system
|
sops
|
||||||
xserver
|
ssh
|
||||||
];
|
system
|
||||||
|
xserver
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
programs.adb.enable = true;
|
programs.adb.enable = true;
|
||||||
services.udev.packages = with pkgs; [
|
services.udev.packages = builtins.attrValues {
|
||||||
android-udev-rules
|
inherit
|
||||||
];
|
(pkgs)
|
||||||
|
android-udev-rules
|
||||||
|
;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
fonts = {
|
fonts = {
|
||||||
fontconfig.defaultFonts.emoji = ["Noto Fonts Color Emoji"];
|
fontconfig.defaultFonts.emoji = ["Noto Fonts Color Emoji"];
|
||||||
packages = with pkgs; [
|
packages = builtins.attrValues {
|
||||||
noto-fonts-color-emoji
|
inherit
|
||||||
open-dyslexic
|
(pkgs)
|
||||||
];
|
noto-fonts-color-emoji
|
||||||
|
open-dyslexic
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,17 +14,21 @@
|
||||||
games.enable = false;
|
games.enable = false;
|
||||||
gnome-online-accounts.enable = true;
|
gnome-online-accounts.enable = true;
|
||||||
};
|
};
|
||||||
udev.packages = with pkgs; [
|
udev.packages = builtins.attrValues {
|
||||||
gnome.gnome-settings-daemon
|
inherit
|
||||||
];
|
(pkgs.gnome)
|
||||||
|
gnome-settings-daemon
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
environment = {
|
environment = {
|
||||||
variables = {
|
variables = {
|
||||||
# WEBKIT_FORCE_SANDBOX = "0";
|
# WEBKIT_FORCE_SANDBOX = "0";
|
||||||
# WEBKIT_DISABLE_COMPOSITING_MODE = "1";
|
# WEBKIT_DISABLE_COMPOSITING_MODE = "1";
|
||||||
};
|
};
|
||||||
gnome.excludePackages =
|
gnome.excludePackages = builtins.attrValues {
|
||||||
(with pkgs; [
|
inherit
|
||||||
|
(pkgs)
|
||||||
gnome-photos
|
gnome-photos
|
||||||
gnome-tour
|
gnome-tour
|
||||||
epiphany # web browser
|
epiphany # web browser
|
||||||
|
@ -34,8 +38,9 @@
|
||||||
totem # video player
|
totem # video player
|
||||||
yelp # help viewer
|
yelp # help viewer
|
||||||
gnome-calendar
|
gnome-calendar
|
||||||
])
|
;
|
||||||
++ (with pkgs.gnome; [
|
inherit
|
||||||
|
(pkgs.gnome)
|
||||||
gnome-music
|
gnome-music
|
||||||
tali # poker game
|
tali # poker game
|
||||||
iagno # go game
|
iagno # go game
|
||||||
|
@ -46,6 +51,7 @@
|
||||||
gnome-maps
|
gnome-maps
|
||||||
gnome-contacts
|
gnome-contacts
|
||||||
gnome-characters
|
gnome-characters
|
||||||
]);
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,12 +2,15 @@
|
||||||
services = {
|
services = {
|
||||||
desktopManager.plasma6.enable = true;
|
desktopManager.plasma6.enable = true;
|
||||||
};
|
};
|
||||||
environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
environment.plasma6.excludePackages = builtins.attrValues {
|
||||||
plasma-browser-integration
|
inherit
|
||||||
konsole
|
(pkgs.kdePackages)
|
||||||
kate
|
plasma-browser-integration
|
||||||
spectacle
|
konsole
|
||||||
kdeconnect-kde
|
kate
|
||||||
khelpcenter
|
spectacle
|
||||||
];
|
kdeconnect-kde
|
||||||
|
khelpcenter
|
||||||
|
;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,12 +23,15 @@ in {
|
||||||
user = service.name;
|
user = service.name;
|
||||||
plugins = {
|
plugins = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = with pkgs; [
|
plugins = builtins.attrValues {
|
||||||
peertube-plugin-livechat
|
inherit
|
||||||
peertube-plugin-matomo
|
(pkgs)
|
||||||
peertube-plugin-transcoding-custom-quality
|
peertube-plugin-livechat
|
||||||
peertube-theme-dark
|
peertube-plugin-matomo
|
||||||
];
|
peertube-plugin-transcoding-custom-quality
|
||||||
|
peertube-theme-dark
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
secrets = {
|
secrets = {
|
||||||
|
|
|
@ -2,13 +2,22 @@
|
||||||
hardware = {
|
hardware = {
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = builtins.attrValues {
|
||||||
rocmPackages.clr.icd
|
inherit
|
||||||
amdvlk
|
(pkgs)
|
||||||
];
|
amdvlk
|
||||||
extraPackages32 = with pkgs; [
|
;
|
||||||
driversi686Linux.amdvlk
|
inherit
|
||||||
];
|
(pkgs.rocmPackages.clr)
|
||||||
|
icd
|
||||||
|
;
|
||||||
|
};
|
||||||
|
extraPackages32 = builtins.attrValues {
|
||||||
|
inherit
|
||||||
|
(pkgs.driversi686Linux)
|
||||||
|
amdvlk
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
boot.initrd.kernelModules = ["amdgpu"];
|
boot.initrd.kernelModules = ["amdgpu"];
|
||||||
|
|
|
@ -2,13 +2,22 @@
|
||||||
hardware = {
|
hardware = {
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = builtins.attrValues {
|
||||||
rocmPackages.clr.icd
|
inherit
|
||||||
amdvlk
|
(pkgs)
|
||||||
];
|
amdvlk
|
||||||
extraPackages32 = with pkgs; [
|
;
|
||||||
driversi686Linux.amdvlk
|
inherit
|
||||||
];
|
(pkgs.rocmPackages.clr)
|
||||||
|
icd
|
||||||
|
;
|
||||||
|
};
|
||||||
|
extraPackages32 = builtins.attrValues {
|
||||||
|
inherit
|
||||||
|
(pkgs.driversi686Linux)
|
||||||
|
amdvlk
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
boot.initrd.kernelModules = ["amdgpu"];
|
boot.initrd.kernelModules = ["amdgpu"];
|
||||||
|
|
|
@ -2,13 +2,22 @@
|
||||||
hardware = {
|
hardware = {
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = builtins.attrValues {
|
||||||
rocmPackages.clr.icd
|
inherit
|
||||||
amdvlk
|
(pkgs)
|
||||||
];
|
amdvlk
|
||||||
extraPackages32 = with pkgs; [
|
;
|
||||||
driversi686Linux.amdvlk
|
inherit
|
||||||
];
|
(pkgs.rocmPackages.clr)
|
||||||
|
icd
|
||||||
|
;
|
||||||
|
};
|
||||||
|
extraPackages32 = builtins.attrValues {
|
||||||
|
inherit
|
||||||
|
(pkgs.driversi686Linux)
|
||||||
|
amdvlk
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
boot.initrd.kernelModules = ["amdgpu"];
|
boot.initrd.kernelModules = ["amdgpu"];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue