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,7 +65,9 @@ let
|
|||
in {
|
||||
flake.homeModules = {
|
||||
desktop = {
|
||||
imports = with modules; [
|
||||
imports = builtins.attrValues {
|
||||
inherit
|
||||
(modules)
|
||||
brave
|
||||
firefox
|
||||
misc-android
|
||||
|
@ -73,45 +75,63 @@ in {
|
|||
misc-internet
|
||||
qbittorrent
|
||||
vscode
|
||||
];
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
entertainment = {
|
||||
imports = with modules; [
|
||||
imports = builtins.attrValues {
|
||||
inherit
|
||||
(modules)
|
||||
freetube
|
||||
misc-entertainment
|
||||
mpv
|
||||
steam
|
||||
];
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
productionArt = {
|
||||
imports = with modules; [
|
||||
imports = builtins.attrValues {
|
||||
inherit
|
||||
(modules)
|
||||
misc-productionArt
|
||||
];
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
productionAudio = {
|
||||
imports = with modules; [
|
||||
imports = builtins.attrValues {
|
||||
inherit
|
||||
(modules)
|
||||
misc-productionAudio
|
||||
];
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
productionVideo = {
|
||||
imports = with modules; [
|
||||
imports = builtins.attrValues {
|
||||
inherit
|
||||
(modules)
|
||||
misc-productionVideo
|
||||
obs-studio
|
||||
];
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
productionWriting = {
|
||||
imports = with modules; [
|
||||
imports = builtins.attrValues {
|
||||
inherit
|
||||
(modules)
|
||||
misc-productionWriting
|
||||
];
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
shared = {
|
||||
imports = with modules; [
|
||||
imports = builtins.attrValues {
|
||||
inherit
|
||||
(modules)
|
||||
bat
|
||||
bottom
|
||||
direnv
|
||||
|
@ -125,9 +145,11 @@ in {
|
|||
starship
|
||||
wezterm
|
||||
# yazi
|
||||
|
||||
zellij
|
||||
zoxide
|
||||
];
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,11 +2,14 @@
|
|||
programs = {
|
||||
obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
plugins = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs.obs-studio-plugins)
|
||||
obs-tuna
|
||||
obs-vkcapture
|
||||
obs-multi-rtmp
|
||||
];
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
home = {
|
||||
|
|
|
@ -14,20 +14,20 @@
|
|||
# when = "textInputFocus";
|
||||
# }
|
||||
# ];
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
eamodio.gitlens
|
||||
catppuccin.catppuccin-vsc
|
||||
james-yu.latex-workshop
|
||||
jnoortheen.nix-ide
|
||||
kamadorueda.alejandra
|
||||
mkhl.direnv
|
||||
pkief.material-icon-theme
|
||||
streetsidesoftware.code-spell-checker
|
||||
tamasfe.even-better-toml
|
||||
esbenp.prettier-vscode
|
||||
mattn.lisp
|
||||
haskell.haskell
|
||||
];
|
||||
extensions = builtins.attrValues {
|
||||
inherit (pkgs.vscode-extensions.catppuccin) catppuccin-vsc;
|
||||
inherit (pkgs.vscode-extensions.eamodio) gitlens;
|
||||
inherit (pkgs.vscode-extensions.esbenp) prettier-vscode;
|
||||
inherit (pkgs.vscode-extensions.haskell) haskell;
|
||||
inherit (pkgs.vscode-extensions.james-yu) latex-workshop;
|
||||
inherit (pkgs.vscode-extensions.jnoortheen) nix-ide;
|
||||
inherit (pkgs.vscode-extensions.kamadorueda) alejandra;
|
||||
inherit (pkgs.vscode-extensions.mattn) lisp;
|
||||
inherit (pkgs.vscode-extensions.mkhl) direnv;
|
||||
inherit (pkgs.vscode-extensions.pkief) material-icon-theme;
|
||||
inherit (pkgs.vscode-extensions.streetsidesoftware) code-spell-checker;
|
||||
inherit (pkgs.vscode-extensions.tamasfe) even-better-toml;
|
||||
};
|
||||
userSettings = {
|
||||
"git.confirmSync" = false;
|
||||
"editor.insertSpaces" = false;
|
||||
|
|
|
@ -58,7 +58,9 @@ let
|
|||
in {
|
||||
flake.nixosModules = {
|
||||
personal = {
|
||||
imports = with modules; [
|
||||
imports = builtins.attrValues {
|
||||
inherit
|
||||
(modules)
|
||||
android
|
||||
audio
|
||||
bluetooth
|
||||
|
@ -75,24 +77,34 @@ in {
|
|||
steam
|
||||
sysstat
|
||||
virtualization
|
||||
];
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
desktop = {
|
||||
imports = with modules; [
|
||||
imports = builtins.attrValues {
|
||||
inherit
|
||||
(modules)
|
||||
syncthing
|
||||
# ollama
|
||||
];
|
||||
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
server = {
|
||||
imports = with modules; [
|
||||
imports = builtins.attrValues {
|
||||
inherit
|
||||
(modules)
|
||||
services
|
||||
];
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
shared = {
|
||||
imports = with modules; [
|
||||
imports = builtins.attrValues {
|
||||
inherit
|
||||
(modules)
|
||||
accounts
|
||||
doas
|
||||
environment
|
||||
|
@ -105,7 +117,8 @@ in {
|
|||
ssh
|
||||
system
|
||||
xserver
|
||||
];
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{pkgs, ...}: {
|
||||
programs.adb.enable = true;
|
||||
services.udev.packages = with pkgs; [
|
||||
services.udev.packages = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs)
|
||||
android-udev-rules
|
||||
];
|
||||
;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
{pkgs, ...}: {
|
||||
fonts = {
|
||||
fontconfig.defaultFonts.emoji = ["Noto Fonts Color Emoji"];
|
||||
packages = with pkgs; [
|
||||
packages = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs)
|
||||
noto-fonts-color-emoji
|
||||
open-dyslexic
|
||||
];
|
||||
;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -14,17 +14,21 @@
|
|||
games.enable = false;
|
||||
gnome-online-accounts.enable = true;
|
||||
};
|
||||
udev.packages = with pkgs; [
|
||||
gnome.gnome-settings-daemon
|
||||
];
|
||||
udev.packages = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs.gnome)
|
||||
gnome-settings-daemon
|
||||
;
|
||||
};
|
||||
};
|
||||
environment = {
|
||||
variables = {
|
||||
# WEBKIT_FORCE_SANDBOX = "0";
|
||||
# WEBKIT_DISABLE_COMPOSITING_MODE = "1";
|
||||
};
|
||||
gnome.excludePackages =
|
||||
(with pkgs; [
|
||||
gnome.excludePackages = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs)
|
||||
gnome-photos
|
||||
gnome-tour
|
||||
epiphany # web browser
|
||||
|
@ -34,8 +38,9 @@
|
|||
totem # video player
|
||||
yelp # help viewer
|
||||
gnome-calendar
|
||||
])
|
||||
++ (with pkgs.gnome; [
|
||||
;
|
||||
inherit
|
||||
(pkgs.gnome)
|
||||
gnome-music
|
||||
tali # poker game
|
||||
iagno # go game
|
||||
|
@ -46,6 +51,7 @@
|
|||
gnome-maps
|
||||
gnome-contacts
|
||||
gnome-characters
|
||||
]);
|
||||
;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,12 +2,15 @@
|
|||
services = {
|
||||
desktopManager.plasma6.enable = true;
|
||||
};
|
||||
environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
||||
environment.plasma6.excludePackages = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs.kdePackages)
|
||||
plasma-browser-integration
|
||||
konsole
|
||||
kate
|
||||
spectacle
|
||||
kdeconnect-kde
|
||||
khelpcenter
|
||||
];
|
||||
;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -23,12 +23,15 @@ in {
|
|||
user = service.name;
|
||||
plugins = {
|
||||
enable = true;
|
||||
plugins = with pkgs; [
|
||||
plugins = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs)
|
||||
peertube-plugin-livechat
|
||||
peertube-plugin-matomo
|
||||
peertube-plugin-transcoding-custom-quality
|
||||
peertube-theme-dark
|
||||
];
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
secrets = {
|
||||
|
|
|
@ -2,13 +2,22 @@
|
|||
hardware = {
|
||||
graphics = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
rocmPackages.clr.icd
|
||||
extraPackages = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs)
|
||||
amdvlk
|
||||
];
|
||||
extraPackages32 = with pkgs; [
|
||||
driversi686Linux.amdvlk
|
||||
];
|
||||
;
|
||||
inherit
|
||||
(pkgs.rocmPackages.clr)
|
||||
icd
|
||||
;
|
||||
};
|
||||
extraPackages32 = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs.driversi686Linux)
|
||||
amdvlk
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
boot.initrd.kernelModules = ["amdgpu"];
|
||||
|
|
|
@ -2,13 +2,22 @@
|
|||
hardware = {
|
||||
graphics = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
rocmPackages.clr.icd
|
||||
extraPackages = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs)
|
||||
amdvlk
|
||||
];
|
||||
extraPackages32 = with pkgs; [
|
||||
driversi686Linux.amdvlk
|
||||
];
|
||||
;
|
||||
inherit
|
||||
(pkgs.rocmPackages.clr)
|
||||
icd
|
||||
;
|
||||
};
|
||||
extraPackages32 = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs.driversi686Linux)
|
||||
amdvlk
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
boot.initrd.kernelModules = ["amdgpu"];
|
||||
|
|
|
@ -2,13 +2,22 @@
|
|||
hardware = {
|
||||
graphics = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
rocmPackages.clr.icd
|
||||
extraPackages = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs)
|
||||
amdvlk
|
||||
];
|
||||
extraPackages32 = with pkgs; [
|
||||
driversi686Linux.amdvlk
|
||||
];
|
||||
;
|
||||
inherit
|
||||
(pkgs.rocmPackages.clr)
|
||||
icd
|
||||
;
|
||||
};
|
||||
extraPackages32 = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs.driversi686Linux)
|
||||
amdvlk
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
boot.initrd.kernelModules = ["amdgpu"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue