forked from fabian/nix
home: move a bunch of settings to defaultDesktopPack and baseline
also rename `apps` namespace to `programs`
This commit is contained in:
parent
9f38ea87a6
commit
d94b776ed9
19 changed files with 86 additions and 142 deletions
|
@ -2,6 +2,7 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
flakes,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
|
@ -11,6 +12,18 @@ in {
|
||||||
enable = mkEnableOption "Basic home settings";
|
enable = mkEnableOption "Basic home settings";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
nix.registry = {
|
||||||
|
"system".to = {
|
||||||
|
type = "path";
|
||||||
|
path = "/home/fabian/nix";
|
||||||
|
};
|
||||||
|
|
||||||
|
"nixpkgs".flake = flakes.nixpkgs;
|
||||||
|
"unstable".flake = flakes.unstable;
|
||||||
|
};
|
||||||
|
|
||||||
xdg = {
|
xdg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
@ -18,6 +31,9 @@ in {
|
||||||
home = {
|
home = {
|
||||||
stateVersion = "24.05"; # DO NOT CHANGE
|
stateVersion = "24.05"; # DO NOT CHANGE
|
||||||
|
|
||||||
|
username = "fabian";
|
||||||
|
homeDirectory = "/home/fabian";
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
calc
|
calc
|
||||||
dysk
|
dysk
|
||||||
|
@ -29,6 +45,7 @@ in {
|
||||||
killall
|
killall
|
||||||
man-pages
|
man-pages
|
||||||
man-pages-posix
|
man-pages-posix
|
||||||
|
nmap
|
||||||
pv
|
pv
|
||||||
ripgrep
|
ripgrep
|
||||||
tree
|
tree
|
||||||
|
@ -53,5 +70,14 @@ in {
|
||||||
userEmail = "fabian@posixlycorrect.com";
|
userEmail = "fabian@posixlycorrect.com";
|
||||||
userName = "Fabian Montero";
|
userName = "Fabian Montero";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
local = {
|
||||||
|
services = {
|
||||||
|
zsh.enable = true;
|
||||||
|
};
|
||||||
|
programs = {
|
||||||
|
neovim.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib; let
|
|
||||||
cfg = config.local.services.deepState;
|
|
||||||
in {
|
|
||||||
options.local.services.deepState.enable = mkEnableOption "trivionomicon settings";
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
home.sessionVariables = {
|
|
||||||
FSOCIETY_TELEGRAM_BACKUP_N = "0";
|
|
||||||
FSOCIETY_TELEGRAM_BACKUP_LOCATION = "/extern/var/fsociety_backup";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -17,7 +17,6 @@
|
||||||
./defaultDesktopPack.nix
|
./defaultDesktopPack.nix
|
||||||
./accounts.nix
|
./accounts.nix
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
./deepState.nix
|
|
||||||
./mapping.nix
|
./mapping.nix
|
||||||
./zed.nix
|
./zed.nix
|
||||||
./pass.nix
|
./pass.nix
|
||||||
|
|
|
@ -5,16 +5,23 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.local.apps.defaultDesktopPack;
|
cfg = config.local.defaultDesktopPack;
|
||||||
in {
|
in {
|
||||||
options.local.apps.defaultDesktopPack = {
|
options.local.defaultDesktopPack = {
|
||||||
enable = mkEnableOption "common desktop apps";
|
enable = mkEnableOption "common desktop programs and services";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
calibre
|
calibre
|
||||||
chromium
|
chromium
|
||||||
discord
|
discord
|
||||||
|
(gajim.override {
|
||||||
|
enableSecrets = true;
|
||||||
|
enableUPnP = true;
|
||||||
|
enableAppIndicator = true;
|
||||||
|
enableE2E = true;
|
||||||
|
enableRST = true;
|
||||||
|
})
|
||||||
libreoffice-fresh
|
libreoffice-fresh
|
||||||
mpv
|
mpv
|
||||||
obs-studio
|
obs-studio
|
||||||
|
@ -22,13 +29,30 @@ in {
|
||||||
pdfarranger
|
pdfarranger
|
||||||
qimgv
|
qimgv
|
||||||
qpdfview
|
qpdfview
|
||||||
|
qbittorrent
|
||||||
runelite
|
runelite
|
||||||
spotify
|
spotify
|
||||||
tdesktop
|
tdesktop
|
||||||
|
thunderbird
|
||||||
usbutils
|
usbutils
|
||||||
vpsfree-client
|
vpsfree-client
|
||||||
vscodium-fhs
|
vscodium-fhs
|
||||||
zola
|
zola
|
||||||
];
|
];
|
||||||
|
|
||||||
|
local = {
|
||||||
|
services = {
|
||||||
|
gpg.enable = true;
|
||||||
|
accounts.enable = true;
|
||||||
|
pass.enable = true;
|
||||||
|
syncthing.enable = true;
|
||||||
|
};
|
||||||
|
programs = {
|
||||||
|
firefox.enable = true;
|
||||||
|
zed.enable = true;
|
||||||
|
halloy.enable = true;
|
||||||
|
terminal.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.local.apps.firefox;
|
cfg = config.local.programs.firefox;
|
||||||
in {
|
in {
|
||||||
options.local.apps.firefox = {
|
options.local.programs.firefox = {
|
||||||
enable = mkEnableOption "firefox settings";
|
enable = mkEnableOption "firefox";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.local.apps.gaming;
|
cfg = config.local.programs.gaming;
|
||||||
in {
|
in {
|
||||||
options.local.apps.gaming = {
|
options.local.programs.gaming = {
|
||||||
enable = mkEnableOption "gaming apps";
|
enable = mkEnableOption "gaming apps";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.local.apps.halloy;
|
cfg = config.local.programs.halloy;
|
||||||
in {
|
in {
|
||||||
options.local.apps.halloy = {
|
options.local.programs.halloy = {
|
||||||
enable = mkEnableOption "halloy irc client";
|
enable = mkEnableOption "halloy irc client";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.local.apps.mapping;
|
cfg = config.local.programs.mapping;
|
||||||
in {
|
in {
|
||||||
options.local.apps.mapping = {
|
options.local.programs.mapping = {
|
||||||
enable = mkEnableOption "mapping apps";
|
enable = mkEnableOption "mapping apps";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.local.apps.neovim;
|
cfg = config.local.programs.neovim;
|
||||||
in {
|
in {
|
||||||
options.local.apps.neovim = {
|
options.local.programs.neovim = {
|
||||||
enable = mkEnableOption "Neovim settings";
|
enable = mkEnableOption "Neovim settings";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
@ -5,9 +5,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.local.apps.terminal;
|
cfg = config.local.programs.terminal;
|
||||||
in {
|
in {
|
||||||
options.local.apps.terminal.enable = mkEnableOption "terminal emulator settings";
|
options.local.programs.terminal = {
|
||||||
|
enable = mkEnableOption "terminal emulator settings";
|
||||||
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs = {
|
programs = {
|
||||||
foot = {
|
foot = {
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.local.apps.yubikey;
|
cfg = config.local.services.yubikey;
|
||||||
in {
|
in {
|
||||||
options.local.apps.yubikey = {
|
options.local.services.yubikey = {
|
||||||
enable = mkEnableOption "Yubikey home settings";
|
enable = mkEnableOption "Yubikey home settings";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
@ -5,9 +5,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.local.apps.zed;
|
cfg = config.local.programs.zed;
|
||||||
in {
|
in {
|
||||||
options.local.apps.zed.enable = mkEnableOption "zed editor settings";
|
options.local.programs.zed = {
|
||||||
|
enable = mkEnableOption "zed editor settings";
|
||||||
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.zed-editor = {
|
programs.zed-editor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -13,6 +13,7 @@ in {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = "prompt for your terminal";
|
description = "prompt for your terminal";
|
||||||
example = literalExpression "%B[%~] \${vcs_info_msg_0_}%b";
|
example = literalExpression "%B[%~] \${vcs_info_msg_0_}%b";
|
||||||
|
default = "%B[%~] \${vcs_info_msg_0_}%b";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
@ -127,6 +127,6 @@
|
||||||
export VISUAL=nvim
|
export VISUAL=nvim
|
||||||
export PATH="$PATH:$HOME/.local/bin:$HOME/.cargo/bin"
|
export PATH="$PATH:$HOME/.local/bin:$HOME/.cargo/bin"
|
||||||
export NIXPKGS_ALLOW_UNFREE=1
|
export NIXPKGS_ALLOW_UNFREE=1
|
||||||
|
|
||||||
eval "$(fzf --zsh)"
|
eval "$(fzf --zsh)"
|
||||||
''
|
''
|
||||||
|
|
|
@ -10,45 +10,18 @@
|
||||||
./isolation.nix
|
./isolation.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.registry = {
|
|
||||||
"system".to = {
|
|
||||||
type = "path";
|
|
||||||
path = "/home/fabian/nix";
|
|
||||||
};
|
|
||||||
|
|
||||||
"nixpkgs".flake = flakes.nixpkgs;
|
|
||||||
"unstable".flake = flakes.unstable;
|
|
||||||
};
|
|
||||||
|
|
||||||
local = {
|
local = {
|
||||||
baseline.enable = true;
|
baseline.enable = true;
|
||||||
|
defaultDesktopPack.enable = true;
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
zsh = {
|
gpg.defaultKey = "A8981D346F8F4130CA16A7775517E687FCCE0BB9";
|
||||||
enable = true;
|
yubikey.enable = true;
|
||||||
prompt = "%B[%~] \${vcs_info_msg_0_}%b";
|
|
||||||
};
|
|
||||||
accounts.enable = true;
|
|
||||||
deepState.enable = true;
|
|
||||||
gpg = {
|
|
||||||
enable = true;
|
|
||||||
defaultKey = "A8981D346F8F4130CA16A7775517E687FCCE0BB9";
|
|
||||||
};
|
|
||||||
syncthing.enable = true;
|
|
||||||
pass.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
apps = {
|
programs = {
|
||||||
#todo move some of this to defaultDesktop pack?
|
|
||||||
terminal.enable = true;
|
|
||||||
neovim.enable = true;
|
|
||||||
gaming.enable = true;
|
gaming.enable = true;
|
||||||
yubikey.enable = true;
|
|
||||||
defaultDesktopPack.enable = true;
|
|
||||||
firefox.enable = true;
|
|
||||||
mapping.enable = true;
|
mapping.enable = true;
|
||||||
zed.enable = true;
|
|
||||||
halloy.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gui = {
|
gui = {
|
||||||
|
@ -72,24 +45,9 @@
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
darktable
|
darktable
|
||||||
(gajim.override {
|
|
||||||
enableSecrets = true;
|
|
||||||
enableUPnP = true;
|
|
||||||
enableAppIndicator = true;
|
|
||||||
enableE2E = true;
|
|
||||||
enableRST = true;
|
|
||||||
})
|
|
||||||
gnucash
|
gnucash
|
||||||
kdePackages.kdenlive
|
kdePackages.kdenlive
|
||||||
nmap
|
|
||||||
qbittorrent
|
|
||||||
thunderbird
|
|
||||||
virt-manager
|
virt-manager
|
||||||
];
|
];
|
||||||
|
|
||||||
username = "fabian";
|
|
||||||
homeDirectory = "/home/fabian";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,43 +10,18 @@
|
||||||
./isolation.nix
|
./isolation.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.registry = {
|
|
||||||
"system".to = {
|
|
||||||
type = "path";
|
|
||||||
path = "/home/fabian/nix";
|
|
||||||
};
|
|
||||||
|
|
||||||
"nixpkgs".flake = flakes.nixpkgs;
|
|
||||||
"unstable".flake = flakes.unstable;
|
|
||||||
};
|
|
||||||
|
|
||||||
local = {
|
local = {
|
||||||
baseline.enable = true;
|
baseline.enable = true;
|
||||||
|
defaultDesktopPack.enable = true;
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
zsh = {
|
gpg.defaultKey = "7206D8EE2474F3DF18EA876F0EC1691FF8C1A81F";
|
||||||
enable = true;
|
yubikey.enable = true;
|
||||||
prompt = "%B[%~] \${vcs_info_msg_0_}%b";
|
|
||||||
};
|
|
||||||
accounts.enable = true;
|
|
||||||
deepState.enable = true;
|
|
||||||
gpg = {
|
|
||||||
enable = true;
|
|
||||||
defaultKey = "7206D8EE2474F3DF18EA876F0EC1691FF8C1A81F";
|
|
||||||
};
|
|
||||||
pass.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
apps = {
|
programs = {
|
||||||
terminal.enable = true;
|
|
||||||
neovim.enable = true;
|
|
||||||
gaming.enable = true;
|
gaming.enable = true;
|
||||||
yubikey.enable = true;
|
|
||||||
defaultDesktopPack.enable = true;
|
|
||||||
firefox.enable = true;
|
|
||||||
mapping.enable = true;
|
mapping.enable = true;
|
||||||
zed.enable = true;
|
|
||||||
halloy.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gui = {
|
gui = {
|
||||||
|
@ -64,10 +39,5 @@
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
];
|
];
|
||||||
|
|
||||||
username = "fabian";
|
|
||||||
homeDirectory = "/home/fabian";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,36 +9,16 @@ with lib; {
|
||||||
imports = [
|
imports = [
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.registry = {
|
|
||||||
"system".to = {
|
|
||||||
type = "path";
|
|
||||||
path = "/home/fabian/nix";
|
|
||||||
};
|
|
||||||
|
|
||||||
"nixpkgs".flake = flakes.nixpkgs;
|
|
||||||
"unstable".flake = flakes.unstable;
|
|
||||||
};
|
|
||||||
|
|
||||||
local = {
|
local = {
|
||||||
baseline.enable = true;
|
baseline.enable = true;
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
zsh = {
|
zsh.prompt = "%B<%~> \${vcs_info_msg_0_}%b";
|
||||||
enable = true;
|
|
||||||
prompt = "%B<%~> \${vcs_info_msg_0_}%b";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
apps = {
|
|
||||||
neovim.enable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
];
|
];
|
||||||
|
|
||||||
username = "fabian";
|
|
||||||
homeDirectory = "/home/fabian";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
local = {
|
local = {
|
||||||
sway.enable = true;
|
sway.enable = true;
|
||||||
trivionomiconMotd.enable = true;
|
trivionomiconMotd.enable = true;
|
||||||
|
|
|
@ -17,7 +17,6 @@ with lib; {
|
||||||
./networkMap.nix
|
./networkMap.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
local.soju = {
|
local.soju = {
|
||||||
enable = true;
|
enable = true;
|
||||||
fullyQualifiedDomain = "soju.posixlycorrect.com";
|
fullyQualifiedDomain = "soju.posixlycorrect.com";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue