users: move users to another module

This commit is contained in:
2025-12-21 22:17:25 +02:00
parent 88bc5ec810
commit 17246b3ccb
9 changed files with 60 additions and 26 deletions
@@ -1 +1 @@
{flake, ...}: {imports = [flake.modules.shared.user];} {flake, ...}: {imports = [flake.modules.users.user];}
@@ -1 +1 @@
{flake, ...}: {imports = [flake.modules.shared.user];} {flake, ...}: {imports = [flake.modules.users.user];}
@@ -1 +1 @@
{flake, ...}: {imports = [flake.modules.shared.user];} {flake, ...}: {imports = [flake.modules.users.user];}
@@ -1 +1 @@
{flake, ...}: {imports = [flake.modules.shared.user];} {flake, ...}: {imports = [flake.modules.users.user];}
@@ -1 +1 @@
{flake, ...}: {imports = [flake.modules.shared.user];} {flake, ...}: {imports = [flake.modules.users.user];}
-7
View File
@@ -1,7 +0,0 @@
{
imports = [
./common.nix
./flatpak.nix
./programs.nix
];
}
@@ -32,4 +32,6 @@
videos = homeDir "vids"; videos = homeDir "vids";
music = homeDir "music"; music = homeDir "music";
}; };
dconf.settings."org/gnome/desktop/interface".enable-animations = false;
} }
@@ -34,6 +34,14 @@
"com.github.PintaProject.Pinta" # bootleg paint "com.github.PintaProject.Pinta" # bootleg paint
"org.gimp.GIMP" # the holy gimp "org.gimp.GIMP" # the holy gimp
"org.kde.kdenlive" # video editor "org.kde.kdenlive" # video editor
{
appId = "com.collabora.Office";
bundle = builtins.fetchurl {
url = "https://cdn.collaboraoffice.com/collaboraoffice-v25.04.7.2_final.flatpak";
name = "collaboraoffice-v25.04.7.2_final.flatpak";
sha256 = "RHEXrlymoWnNmdVEzVh85/icxQsWVpLpgkJubi7SpsY=";
};
}
] ]
++ [ ++ [
# chatting # chatting
@@ -99,6 +107,9 @@
"/nix/store:ro" "/nix/store:ro"
"xdg-config/gtk-3.0:ro" "xdg-config/gtk-3.0:ro"
"xdg-config/gtk-4.0:ro" "xdg-config/gtk-4.0:ro"
"xdg-config/Kvantum:ro"
"xdg-config/qt5ct:ro"
"xdg-config/qt6ct:ro"
"xdg-run/pipewire-0" "xdg-run/pipewire-0"
"~/.local/share/icons:ro" "~/.local/share/icons:ro"
]; ];
@@ -109,7 +120,7 @@
}; };
"app.grayjay.Grayjay".Context.sockets = ["x11" "!wayland" "!fallback-x11"]; # because CEF "app.grayjay.Grayjay".Context.sockets = ["x11" "!wayland" "!fallback-x11"]; # because CEF
"ca.edestcroix.Recordbox".Context.filesystems = ["xdg-music"]; "ca.edestcroix.Recordbox".Context.filesystems = ["xdg-music"];
"md.obsidian.Obsidian".Context.filesystems = ["~/Obsidian"]; "md.obsidian.Obsidian".Context.filesystems = ["~/Obsidian" "~/.ssh"]; # .ssh for git plugin
"com.valvesoftware.Steam" = { "com.valvesoftware.Steam" = {
Context = { Context = {
inherit (game) sockets; inherit (game) sockets;
@@ -125,6 +136,7 @@
inherit (game) sockets; inherit (game) sockets;
filesystems = game.folder "heroic"; filesystems = game.folder "heroic";
}; };
"com.collabora.Office" = {inherit (homeNoNetwork) Context;};
"com.github.PintaProject.Pinta" = {inherit (homeNoNetwork) Context;}; "com.github.PintaProject.Pinta" = {inherit (homeNoNetwork) Context;};
"com.logseq.Logseq" = {inherit (homeNoNetwork) Context;}; "com.logseq.Logseq" = {inherit (homeNoNetwork) Context;};
"com.obsproject.Studio" = {inherit (homeNoNetwork) Context;}; "com.obsproject.Studio" = {inherit (homeNoNetwork) Context;};
@@ -1,9 +1,10 @@
{ {
config, config,
inputs,
lib, lib,
osConfig, osConfig,
perSystem,
pkgs, pkgs,
inputs,
... ...
}: let }: let
inherit (lib) mkIf; inherit (lib) mkIf;
@@ -22,11 +23,12 @@ in {
fish.enable = true; fish.enable = true;
oh-my-posh.enable = true; oh-my-posh.enable = true;
}; };
syncthing.enable = true; syncthing.enable = true;
terminal.wezterm.enable = true; terminal.wezterm.enable = true;
terminal.ghostty.enable = true; terminal.ghostty.enable = true;
systemd.user.settings.Manager.DefaultEnvironment = { systemd.user.settings.Manager.DefaultEnvironment = {
TERMINAL = "ghostty"; TERMINAL = "wezterm";
HISTFILE = ''"$XDG_STATE_HOME"/bash/history''; HISTFILE = ''"$XDG_STATE_HOME"/bash/history'';
CARGO_HOME = ''"$XDG_DATA_HOME"/cargo''; CARGO_HOME = ''"$XDG_DATA_HOME"/cargo'';
DOTNET_CLI_HOME = ''"$XDG_DATA_HOME"/dotnet''; DOTNET_CLI_HOME = ''"$XDG_DATA_HOME"/dotnet'';
@@ -49,6 +51,8 @@ in {
bat.enable = true; # cat in rust bat.enable = true; # cat in rust
btop.enable = true; btop.enable = true;
# direnv.enable = true; # direnv.enable = true;
distrobox.enable = true;
difftastic.enable = true;
eza.enable = true; # ls in rust eza.enable = true; # ls in rust
fd.enable = true; # find in rust fd.enable = true; # find in rust
fzf.enable = true; # fuzzy finder in rust fzf.enable = true; # fuzzy finder in rust
@@ -67,16 +71,15 @@ in {
} }
{ {
btop.settings.update_ms = 200; btop.settings.update_ms = 200;
# direnv.silent = true;
git = { difftastic.git.enable = true;
delta.enable = true; # diff in rust difftastic.git.diffToolMode = true;
signing.format = "ssh";
aliases = { git.signing.format = "ssh";
cl = "clone";
co = "checkout"; git.settings.alias.cl = "clone";
pom = "push origin main"; git.settings.alias.co = "checkout";
};
};
keychain.keys = ["id_ed25519"]; keychain.keys = ["id_ed25519"];
}; };
@@ -104,6 +107,29 @@ in {
trashy # trash cli in rust trashy # trash cli in rust
up # ultimate plumber in go up # ultimate plumber in go
] ]
++ [
(pkgs.writeShellApplication {
name = "rbw-ls";
runtimeInputs = with pkgs; [rbw jq csvlens];
text = ''
rbw ls --raw \
| jq -r '["name","user","folder","id"],
( .[] | [(.name // "none"), (.user // "none"), (.folder // "none"), .id])
| @csv' \
| csvlens
'';
})
(pkgs.writeShellApplication {
name = "rbw-get";
runtimeInputs = with pkgs; [rbw wl-clipboard];
text = ''rbw get --clipboard "$1" && sleep 5 && wl-copy -c'';
})
(pkgs.writeShellApplication {
name = "rbw-totp";
runtimeInputs = with pkgs; [rbw wl-clipboard];
text = ''rbw totp --clipboard "$1" && sleep 5 && wl-copy -c'';
})
]
++ [ ++ [
# misc apps # misc apps
adwaita-icon-theme adwaita-icon-theme
@@ -118,11 +144,12 @@ in {
celluloid # mpv gui in libadwaita celluloid # mpv gui in libadwaita
# gnome-text-editor # gnome-text-editor
helvum # pipewire patchbay in rust helvum # pipewire patchbay in rust
junction # app chooser # junction # app chooser
mission-center # task manager in rust (partly) mission-center # task manager in rust (partly)
(mkIf bluetooth.enable overskride) # bluetooth gui in rust (mkIf bluetooth.enable overskride) # bluetooth gui in rust
pika-backup # borg gui in rust pika-backup # borg gui in rust
pwvucontrol # pipewire gui in rust pwvucontrol # pipewire gui in rust
perSystem.zmx.default
# sonusmix # pipewire routing tool in rust # sonusmix # pipewire routing tool in rust
]; ];