unclutter

This commit is contained in:
unexplrd
2025-02-07 13:31:41 +02:00
parent ff5765eeee
commit a33f397432
11 changed files with 188 additions and 194 deletions

View File

@ -9,18 +9,15 @@
self.nixosModules.desktop self.nixosModules.desktop
self.nixosModules.system self.nixosModules.system
./hardware-conf.nix ./hardware-conf.nix
./users.nix
./programs.nix ./programs.nix
./stylix.nix ./stylix.nix
./users.nix
]; ];
desktop = { desktop = {
niri.enable = true; niri.enable = true;
plasma.enable = true; plasma.enable = true;
}; };
services.logind = {
lidSwitch = "ignore";
powerKey = "suspend";
};
nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];
system.stateVersion = "unstable"; system.stateVersion = "unstable";
@ -28,13 +25,14 @@
time.timeZone = "Europe/Kyiv"; time.timeZone = "Europe/Kyiv";
locale.ukrainian.enable = true; locale.ukrainian.enable = true;
networking.hostName = "dunamis"; networking = {
networking.networkmanager.enable = true; networkmanager.enable = true;
hostName = "dunamis";
# required for syncthing # required for syncthing
networking.firewall = { firewall = {
allowedTCPPorts = [22000]; allowedTCPPorts = [22000];
allowedUDPPorts = [21027 22000]; allowedUDPPorts = [21027 22000];
};
}; };
boot = { boot = {

View File

@ -11,21 +11,24 @@
wireless.bluetooth.enable = true; wireless.bluetooth.enable = true;
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"]; services.logind = {
boot.initrd.kernelModules = [ lidSwitch = "ignore";
"i915" powerKey = "suspend";
]; };
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = []; boot = {
boot.initrd.systemd.enable = true; kernelModules = ["kvm-amd"];
hardware.graphics = { extraModulePackages = [];
enable = true; initrd = {
extraPackages = with pkgs; [ luks.devices."luks-fe586da4-b164-4362-bcdf-9c5dd6c69a2b".device = "/dev/disk/by-uuid/fe586da4-b164-4362-bcdf-9c5dd6c69a2b";
vpl-gpu-rt availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
]; kernelModules = [
"i915"
];
systemd.enable = true;
};
}; };
boot.initrd.luks.devices."luks-fe586da4-b164-4362-bcdf-9c5dd6c69a2b".device = "/dev/disk/by-uuid/fe586da4-b164-4362-bcdf-9c5dd6c69a2b";
fileSystems = { fileSystems = {
"/" = { "/" = {
device = "/dev/disk/by-uuid/79ce18b8-3a9e-4cd0-be62-60972686f44a"; device = "/dev/disk/by-uuid/79ce18b8-3a9e-4cd0-be62-60972686f44a";
@ -51,6 +54,13 @@
swapDevices = []; swapDevices = [];
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
vpl-gpu-rt
];
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View File

@ -5,12 +5,11 @@
./programs.nix ./programs.nix
./flatpak.nix ./flatpak.nix
]; ];
desktop.niri.enable = true;
home = { home = {
stateVersion = "25.05"; stateVersion = "25.05";
sessionPath = [ sessionPath = [
"$HOME/.local/bin" "$HOME/.local/bin"
]; ];
}; };
desktop.niri.enable = true;
# stylix.image = "${config.xdg.userDirs.pictures}/wallpapers/wallhaven-2evrxy.png";
} }

View File

@ -9,18 +9,13 @@
self.nixosModules.desktop self.nixosModules.desktop
self.nixosModules.system self.nixosModules.system
./hardware-conf.nix ./hardware-conf.nix
./users.nix
./programs.nix ./programs.nix
./stylix.nix ./stylix.nix
./users.nix
]; ];
desktop = { desktop = {
hyprland.enable = true; hyprland.enable = true;
# niri.enable = true;
# plasma.enable = true;
};
services.logind = {
lidSwitch = "ignore";
powerKey = "suspend";
}; };
nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];
@ -29,13 +24,14 @@
time.timeZone = "Europe/Kyiv"; time.timeZone = "Europe/Kyiv";
locale.ukrainian.enable = true; locale.ukrainian.enable = true;
networking.hostName = "vylxae"; networking = {
networking.networkmanager.enable = true; networkmanager.enable = true;
hostName = "vylxae";
# required for syncthing # required for syncthing
networking.firewall = { firewall = {
allowedTCPPorts = [22000]; allowedTCPPorts = [22000];
allowedUDPPorts = [21027 22000]; allowedUDPPorts = [21027 22000];
};
}; };
boot = { boot = {
@ -57,10 +53,8 @@
services = { services = {
power-profiles-daemon.enable = true; power-profiles-daemon.enable = true;
hardware.openrgb.enable = true;
flatpak.enable = true; flatpak.enable = true;
fstrim.enable = true; fstrim.enable = true;
fwupd.enable = true;
openssh.enable = true; openssh.enable = true;
}; };
services.scx = { services.scx = {

View File

@ -17,56 +17,57 @@
bluetooth.enable = true; bluetooth.enable = true;
}; };
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sr_mod" "rtsx_pci_sdmmc"]; services.logind = {
boot.initrd.kernelModules = ["i915"]; lidSwitch = "ignore";
boot.kernelModules = ["kvm-intel"]; powerKey = "suspend";
boot.extraModulePackages = [];
boot.kernelParams = [
"i915.enable_guc=2"
"i915.enable_fbc=1"
"i915.enable_psr=2"
];
fileSystems."/" = {
device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf";
fsType = "btrfs";
options = ["subvol=@nixos,compress=zstd"];
}; };
boot.initrd.luks.devices."luks-149371a0-a41f-4c43-8935-cb199508c66a".device = "/dev/disk/by-uuid/149371a0-a41f-4c43-8935-cb199508c66a"; boot = {
kernelModules = ["kvm-intel"];
fileSystems."/home" = { extraModulePackages = [];
device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf"; kernelParams = [
fsType = "btrfs"; "i915.enable_guc=2"
options = ["subvol=home,compress=zstd"]; "i915.enable_fbc=1"
"i915.enable_psr=2"
];
initrd = {
luks.devices."luks-149371a0-a41f-4c43-8935-cb199508c66a".device = "/dev/disk/by-uuid/149371a0-a41f-4c43-8935-cb199508c66a";
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sr_mod" "rtsx_pci_sdmmc"];
kernelModules = ["i915"];
};
}; };
fileSystems."/storage" = { fileSystems = {
device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf"; "/" = {
fsType = "btrfs"; device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf";
options = ["subvol=@storage,compress=zstd"]; fsType = "btrfs";
}; options = ["subvol=@nixos,compress=zstd"];
};
fileSystems."/boot" = { "/home" = {
device = "/dev/disk/by-uuid/F195-F7C0"; device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf";
fsType = "vfat"; fsType = "btrfs";
options = ["umask=0077"]; options = ["subvol=home,compress=zstd"];
};
"/storage" = {
device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf";
fsType = "btrfs";
options = ["subvol=@storage,compress=zstd"];
};
"/boot" = {
device = "/dev/disk/by-uuid/F195-F7C0";
fsType = "vfat";
options = ["umask=0077"];
};
}; };
swapDevices = []; swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s20f0u1u2.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# hardware.intelgpu.vaapiDriver = "intel-media-driver";
services.udev.extraHwdb = '' services.udev.extraHwdb = ''
evdev:input:b0011v0001p0001eAB83* evdev:input:b0011v0001p0001eAB83*

View File

@ -16,10 +16,10 @@
cursor = { cursor = {
package = pkgs.bibata-cursors; package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice"; name = "Bibata-Modern-Ice";
size = 32; size = 24;
}; };
image = ../../wallpapers/wallhaven-p966oj.jpg; image = ../../wallpapers/wallhaven-p966oj.jpg;
opacity.terminal = 0.9; opacity.terminal = 0.7;
fonts = { fonts = {
sizes = { sizes = {
applications = 14; applications = 14;

View File

@ -5,12 +5,11 @@
./programs.nix ./programs.nix
./flatpak.nix ./flatpak.nix
]; ];
desktop.hyprland.enable = true;
home = { home = {
stateVersion = "25.05"; stateVersion = "25.05";
sessionPath = [ sessionPath = [
"$HOME/.local/bin" "$HOME/.local/bin"
]; ];
}; };
desktop.hyprland.enable = true;
# stylix.image = "${config.xdg.userDirs.pictures}/wallpapers/wallhaven-2evrxy.png";
} }

View File

@ -18,6 +18,12 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
systemd = {
enable = true;
variables = [
"--all"
];
};
package = pkgs.hyprland; package = pkgs.hyprland;
plugins = with pkgs.hyprlandPlugins; [ plugins = with pkgs.hyprlandPlugins; [
hyprexpo hyprexpo
@ -52,14 +58,11 @@ in {
xwayland.force_zero_scaling = true; xwayland.force_zero_scaling = true;
monitor = [ monitor = [
", preferred, auto, 1" ", preferred, auto, 1"
# "desc:AOC 27V2G5 0x0000026C, highrr, -1920x0, 1" # , bitdepth, 10"
"desc:AOC 27V2G5 0x0000026C, addreserved, 0, 300, 0, 0" "desc:AOC 27V2G5 0x0000026C, addreserved, 0, 300, 0, 0"
# "HDMI-A-1, addreserved, 0, 300, 0, 0"
"desc:Samsung Electric Company S24R65x H4TMA03291, preferred, 0x0, 1, bitdepth, 10, vrr, 1" "desc:Samsung Electric Company S24R65x H4TMA03291, preferred, 0x0, 1, bitdepth, 10, vrr, 1"
"desc:Philips Consumer Electronics Company 27M2N5500 UK02418033254, 2560x1440@180.00Hz, 0x0, 1.3333333, bitdepth, 10, vrr, 1" "desc:Philips Consumer Electronics Company 27M2N5500 UK02418033254, 2560x1440@180.00Hz, 0x0, 1.3333333, bitdepth, 10, vrr, 1"
"desc:BOE 0x08E8, preferred, 1920x0, 1.2, bitdepth, 10" "desc:BOE 0x08E8, preferred, 1920x0, 1.2, bitdepth, 10"
# "desc:Samsung Electric Company S24R65x H4TMA03291, preferred, 0x0, 1, bitdepth, 10" "desc:LG Display 0x068B, preferred, 1920x0, 1.2, bitdepth, 10"
"desc:BOE 0x08E8, preferred, 1920x0, 1.2"
"desc:Chimei Innolux Corporation 0x1406, preferred, 1920x0, 1.2" "desc:Chimei Innolux Corporation 0x1406, preferred, 1920x0, 1.2"
]; ];
env = [ env = [
@ -410,24 +413,14 @@ in {
}; };
}; };
services.playerctld.enable = true;
services.gnome-keyring = { services.gnome-keyring = {
enable = true; enable = true;
components = ["secrets" "ssh"]; components = ["secrets" "ssh"];
}; };
services.ssh-agent.enable = true;
programs.keychain = {
enable = false;
keys = ["id_ed25519"];
enableNushellIntegration = true;
extraFlags = [
"--quiet"
"--noask"
];
};
services = { services = {
network-manager-applet.enable = true; network-manager-applet.enable = true;
blueman-applet.enable = true; blueman-applet.enable = true;
playerctld.enable = true;
copyq.enable = true; copyq.enable = true;
}; };
gtk = { gtk = {

View File

@ -1,7 +1,6 @@
{ {
osConfig, osConfig,
config, config,
inputs,
pkgs, pkgs,
lib, lib,
... ...
@ -19,7 +18,6 @@ in {
hyprlock.enable = false; hyprlock.enable = false;
}; };
services = { services = {
ssh-agent.enable = true;
playerctld.enable = true; playerctld.enable = true;
network-manager-applet.enable = true; network-manager-applet.enable = true;
copyq.enable = true; copyq.enable = true;
@ -1278,16 +1276,6 @@ in {
}; };
programs.wpaperd.enable = true; programs.wpaperd.enable = true;
programs.keychain = {
enable = true;
keys = ["gitea-local"];
enableNushellIntegration = true;
extraFlags = [
"--quiet"
"--noask"
];
};
home.packages = with pkgs; [ home.packages = with pkgs; [
niri niri
nautilus nautilus

View File

@ -12,89 +12,101 @@ in {
mkEnableOption "enable nushell"; mkEnableOption "enable nushell";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.oh-my-posh.enableNushellIntegration = true; programs = {
programs.zoxide = { atuin = {
enable = true; enable = true;
enableNushellIntegration = true; enableNushellIntegration = true;
}; flags = [
programs.carapace = { "--disable-up-arrow"
enable = true; ];
enableNushellIntegration = true;
};
programs.atuin = {
enable = true;
enableNushellIntegration = true;
flags = [
"--disable-up-arrow"
];
};
programs.nushell = {
enable = true;
environmentVariables = {
CARAPACE_BRIDGES = "zsh,fish,bash,inshellisense";
CARAPACE_MATCH = 1;
EDITOR = "hx";
}; };
shellAliases = { carapace = {
cd = "z"; enable = true;
cat = "bat"; enableNushellIntegration = true;
l = "ls -l";
nix-shell = "nix-shell --command nu";
}; };
extraConfig = '' zoxide = {
$env.config = { enable = true;
show_banner: false enableNushellIntegration = true;
shell_integration: { };
# osc2 abbreviates the path if in the home_dir, sets the tab/window title, shows the running command in the tab/window title oh-my-posh.enableNushellIntegration = true;
osc2: true keychain = {
# osc7 is a way to communicate the path to the terminal, this is helpful for spawning new tabs in the same directory enable = true;
osc7: true keys = ["id_ed25519"];
# osc8 is also implemented as the deprecated setting ls.show_clickable_links, it shows clickable links in ls output if your terminal supports it. show_clickable_links is deprecated in favor of osc8 enableNushellIntegration = true;
osc8: true extraFlags = [
# osc9_9 is from ConEmu and is starting to get wider support. It's similar to osc7 in that it communicates the path to the terminal "--quiet"
osc9_9: false "--noask"
# osc133 is several escapes invented by Final Term which include the supported ones below. ];
# 133;A - Mark prompt start };
# 133;B - Mark prompt end nushell = {
# 133;C - Mark pre-execution enable = true;
# 133;D;exit - Mark execution finished with exit code environmentVariables = {
# This is used to enable terminals to know where the prompt is, the command is, where the command finishes, and where the output of the command is CARAPACE_BRIDGES = "zsh,fish,bash,inshellisense";
osc133: true CARAPACE_MATCH = 1;
# osc633 is closely related to osc133 but only exists in visual studio code (vscode) and supports their shell integration features EDITOR = "hx";
# 633;A - Mark prompt start };
# 633;B - Mark prompt end shellAliases = {
# 633;C - Mark pre-execution cd = "z";
# 633;D;exit - Mark execution finished with exit code cat = "bat";
# 633;E - Explicitly set the command line with an optional nonce la = "ls -a";
# 633;P;Cwd=<path> - Mark the current working directory and communicate it to the terminal l = "ls -la";
# and also helps with the run recent menu in vscode nix-shell = "nix-shell --command nu";
osc633: true };
# reset_application_mode is escape \x1b[?1l and was added to help ssh work better extraConfig = ''
reset_application_mode: true $env.config = {
} show_banner: false
shell_integration: {
# osc2 abbreviates the path if in the home_dir, sets the tab/window title, shows the running command in the tab/window title
osc2: true
# osc7 is a way to communicate the path to the terminal, this is helpful for spawning new tabs in the same directory
osc7: true
# osc8 is also implemented as the deprecated setting ls.show_clickable_links, it shows clickable links in ls output if your terminal supports it. show_clickable_links is deprecated in favor of osc8
osc8: true
# osc9_9 is from ConEmu and is starting to get wider support. It's similar to osc7 in that it communicates the path to the terminal
osc9_9: false
# osc133 is several escapes invented by Final Term which include the supported ones below.
# 133;A - Mark prompt start
# 133;B - Mark prompt end
# 133;C - Mark pre-execution
# 133;D;exit - Mark execution finished with exit code
# This is used to enable terminals to know where the prompt is, the command is, where the command finishes, and where the output of the command is
osc133: true
# osc633 is closely related to osc133 but only exists in visual studio code (vscode) and supports their shell integration features
# 633;A - Mark prompt start
# 633;B - Mark prompt end
# 633;C - Mark pre-execution
# 633;D;exit - Mark execution finished with exit code
# 633;E - Explicitly set the command line with an optional nonce
# 633;P;Cwd=<path> - Mark the current working directory and communicate it to the terminal
# and also helps with the run recent menu in vscode
osc633: true
# reset_application_mode is escape \x1b[?1l and was added to help ssh work better
reset_application_mode: true
}
ls: { ls: {
use_ls_colors: true use_ls_colors: true
clickable_links: true clickable_links: true
} }
rm: { rm: {
always_trash: true always_trash: true
} }
edit_mode: 'vi' edit_mode: 'vi'
completions: { completions: {
case_sensitive: false case_sensitive: false
quick: true quick: true
partial: true partial: true
algorithm: "fuzzy" algorithm: "fuzzy"
external: { external: {
enable: true enable: true
# max_results: 100 # max_results: 100
# completer: $carapace_completer # check 'carapace_completer' # completer: $carapace_completer # check 'carapace_completer'
}
} }
} }
} '';
''; };
}; };
}; };
} }

View File

@ -6,11 +6,11 @@
alsa.enable = true; alsa.enable = true;
pulse.enable = true; pulse.enable = true;
extraConfig.pipewire."92-low-latency" = { extraConfig.pipewire."92-low-latency" = {
context.properties = { context.properties.default.clock = {
default.clock.rate = 48000; rate = 48000;
default.clock.quantum = 32; quantum = 32;
default.clock.min-quantum = 32; min-quantum = 32;
default.clock.max-quantum = 32; max-quantum = 32;
}; };
}; };
}; };