fix: keyring hopefully

This commit is contained in:
nydragon 2025-03-06 20:16:32 +01:00
parent e3e6bb967c
commit 302375470f
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE
9 changed files with 27 additions and 100 deletions

View file

@ -1,6 +1,7 @@
# This file contains default settings used across different systems # This file contains default settings used across different systems
{ {
imports = [ imports = [
./themes/catppuccin.nix
./graphical ./graphical
./terminal ./terminal
./desktop ./desktop

View file

@ -43,6 +43,7 @@ in
}; };
modules = { modules = {
fs.nfsEnable = true;
system = { system = {
roles = { roles = {
desktop.enable = true; desktop.enable = true;
@ -106,7 +107,6 @@ in
fish.enable = true; fish.enable = true;
firefox.enable = true; firefox.enable = true;
thunderbird.enable = true; thunderbird.enable = true;
sway.enable = true;
hyprland.enable = true; hyprland.enable = true;
}; };
@ -118,7 +118,6 @@ in
isNormalUser = true; isNormalUser = true;
createHome = true; createHome = true;
packages = with pkgs; [ packages = with pkgs; [
prismlauncher
orca-slicer orca-slicer
]; ];
extraGroups = [ extraGroups = [
@ -138,18 +137,6 @@ in
enableSSHSupport = true; enableSSHSupport = true;
}; };
environment.systemPackages = with pkgs; [
fish
wireguard-tools
git
htop
eza
bat
nfs-utils
];
services.rpcbind.enable = true; # necessary for nfs
boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
nix.settings.extra-platforms = config.boot.binfmt.emulatedSystems; nix.settings.extra-platforms = config.boot.binfmt.emulatedSystems;

View file

@ -14,7 +14,6 @@ in
home-manager.users.${username} = { home-manager.users.${username} = {
imports = [ imports = [
../../home/themes/catppuccin.nix
../../home ../../home
]; ];

View file

@ -2,13 +2,16 @@
{ {
pkgs, pkgs,
inputs, inputs,
config,
... ...
}: }:
let
inherit (config.modules.meta) username;
in
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./home.nix ./home.nix
./ny.nix
../../users/ny ../../users/ny
]; ];
@ -61,8 +64,6 @@
}; };
}; };
hardware.graphics.enable = true;
xdg = { xdg = {
portal.enable = true; portal.enable = true;
mime.enable = true; mime.enable = true;
@ -89,11 +90,12 @@
firefox.enable = true; firefox.enable = true;
thunderbird.enable = true; thunderbird.enable = true;
hyprland.enable = true; hyprland.enable = true;
pulseview.enable = true;
gnupg.agent = { gnupg.agent = {
enable = true; enable = true;
enableSSHSupport = true; enableSSHSupport = true;
enableExtraSocket = true;
}; };
seahorse.enable = true;
}; };
hardware.sane = { hardware.sane = {
@ -122,9 +124,9 @@
powerKey = "hibernate"; powerKey = "hibernate";
}; };
thermald.enable = true; #thermald.enable = true;
auto-cpufreq.enable = true; #auto-cpufreq.enable = true;
upower = { upower = {
enable = true; enable = true;
@ -137,6 +139,19 @@
users = { users = {
defaultUserShell = pkgs.fish; defaultUserShell = pkgs.fish;
users.${username} = {
isNormalUser = true;
createHome = true;
packages = with pkgs; [
simple-scan
beekeeper-studio
];
extraGroups = [
"networkmanager"
"audio"
"libvirtd" # VM OPs
];
};
}; };
environment.variables = { environment.variables = {
@ -159,13 +174,7 @@
programs.virt-manager.enable = true; programs.virt-manager.enable = true;
programs.nix-ld.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
shared-mime-info
glib
dconf
xdg-utils
brightnessctl brightnessctl
]; ];

View file

@ -14,7 +14,6 @@ in
home-manager.users.${username} = { home-manager.users.${username} = {
imports = [ imports = [
../../home/themes/vanilla.nix
../../home ../../home
]; ];

View file

@ -1,71 +0,0 @@
{
pkgs,
config,
inputs',
...
}:
let
inherit (config.modules.meta) username;
in
{
config = {
users.users.${username} = {
packages =
[
inputs'.nur.packages.grayjay-desktop
]
++ (with pkgs; [
digikam
fragments
element-desktop
loupe
seahorse
gimp
thunderbird
keepassxc
protonmail-bridge-gui
varia
signal-desktop
onlyoffice-desktopeditors
picard
simple-scan
insomnia
beekeeper-studio
# Proprietary
postman
mongodb-compass
obsidian
# CLI tools
jhead
fdupes
exiftool
sshfs
lazygit
wl-clipboard
# custom
nysh
scripts.screenshot
scripts.nixedit
scripts.set-background
scripts.rpaste
scripts.nrun
scripts.nruni
scripts.genswitch
scripts.gentest
scripts.editsym
scripts.deployswitch
scripts.deploytest
]);
isNormalUser = true;
createHome = true;
extraGroups = [
"networkmanager"
"audio"
"libvirtd"
];
};
};
}

View file

@ -1,6 +1,7 @@
{ pkgs, inputs, ... }: { pkgs, inputs, ... }:
{ {
environment.sessionVariables = { environment.sessionVariables = {
SSH_AUTH_SOCK = "/run/user/\${UID}/keyring/ssh";
MANROFFOPT = "-c"; MANROFFOPT = "-c";
MANPAGER = "sh -c 'col -bx | ${pkgs.bat}/bin/bat -l man -p'"; MANPAGER = "sh -c 'col -bx | ${pkgs.bat}/bin/bat -l man -p'";
WALLPAPERS = "${inputs.wallpapers}"; WALLPAPERS = "${inputs.wallpapers}";

View file

@ -12,6 +12,7 @@ in
{ {
options.modules.system.roles.gaming = { options.modules.system.roles.gaming = {
enable = mkEnableOption "gaming features"; enable = mkEnableOption "gaming features";
minecraft.enable = mkEnableOption "minecraft";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
@ -32,6 +33,7 @@ in
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
mangohud mangohud
heroic heroic
(mkIf cfg.minecraft.enable prismlauncher)
]; ];
}; };
} }

View file

@ -31,7 +31,6 @@ in
element-desktop element-desktop
libreoffice libreoffice
loupe loupe
seahorse
pwvucontrol pwvucontrol
thunderbird thunderbird
keepassxc keepassxc
@ -39,6 +38,7 @@ in
signal-desktop signal-desktop
tagger tagger
kid3 kid3
hoppscotch
# proprietary # proprietary
obsidian obsidian