mirror of
https://github.com/blahai/nyx.git
synced 2025-01-18 19:10:21 +00:00
stuff
This commit is contained in:
parent
ce0cc5229c
commit
be765a7cf5
2 changed files with 61 additions and 61 deletions
|
@ -19,12 +19,35 @@
|
||||||
};
|
};
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
kernelPackages = pkgs.linuxPackages_zen;
|
kernelPackages = pkgs.linuxPackages_cachyos;
|
||||||
|
kernel = {
|
||||||
|
sysctl ={
|
||||||
|
"vm.max_map_count" = 2147483642;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
zramSwap = {
|
||||||
|
enable = true;
|
||||||
|
algorithm = "zstd";
|
||||||
|
memoryPercent = 75;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "nyx";
|
hostName = "nyx";
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
|
stevenblack = {
|
||||||
|
enable = true;
|
||||||
|
block = [
|
||||||
|
"fakenews"
|
||||||
|
"gambling"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
nameservers = [
|
||||||
|
"1.1.1.1"
|
||||||
|
"1.0.0.1"
|
||||||
|
"9.9.9.9"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/Helsinki";
|
time.timeZone = "Europe/Helsinki";
|
||||||
|
@ -69,12 +92,13 @@
|
||||||
users.users.pingu = {
|
users.users.pingu = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Elissa";
|
description = "Elissa";
|
||||||
extraGroups = [ "networkmanager" "wheel" "docker" ];
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
floorp
|
floorp
|
||||||
vesktop
|
vesktop
|
||||||
|
alacritty
|
||||||
|
kitty
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -83,13 +107,12 @@
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
verbose = true;
|
verbose = true;
|
||||||
|
backupFileExtension = "bak";
|
||||||
users = {
|
users = {
|
||||||
"pingu" = import ./home.nix;
|
"pingu" = import ./home.nix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.docker.enable = true;
|
|
||||||
|
|
||||||
systemd = {
|
systemd = {
|
||||||
user.services.polkit-gnome-authentication-agent-1 = {
|
user.services.polkit-gnome-authentication-agent-1 = {
|
||||||
description = "polkit-gnome-authentication-agent-1";
|
description = "polkit-gnome-authentication-agent-1";
|
||||||
|
@ -111,7 +134,7 @@
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
|
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
|
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.hyprland.packages."${pkgs.system}".hyprland;
|
package = inputs.hyprland.packages."${pkgs.system}".hyprland;
|
||||||
|
@ -125,7 +148,10 @@
|
||||||
nh = {
|
nh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
flake = "/home/pingu/.config/nixos";
|
flake = "/home/pingu/.config/nixos";
|
||||||
|
clean = {
|
||||||
|
enable = true;
|
||||||
|
extraArgs = "--keep-since 5d --keep 5";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nix-ld.enable = true;
|
nix-ld.enable = true;
|
||||||
|
@ -140,32 +166,22 @@
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
package = pkgs.lix;
|
||||||
settings = {
|
settings = {
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
experimental-features = [ "nix-command" "flakes" "auto-allocate-uids" ];
|
||||||
|
max-jobs = "auto";
|
||||||
|
sandbox = true;
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
substituters = [
|
keep-going = true;
|
||||||
"https://hyprland.cachix.org"
|
warn-dirty = false;
|
||||||
"https://cache.nixos.org"
|
use-xdg-base-directories = true;
|
||||||
"https://nixpkgs-wayland.cachix.org"
|
|
||||||
"https://nix-community.cachix.org"
|
|
||||||
];
|
|
||||||
trusted-public-keys = [
|
|
||||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
||||||
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
|
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
||||||
];
|
|
||||||
trusted-users = [ "@wheel" "pingu" "root" ];
|
trusted-users = [ "@wheel" "pingu" "root" ];
|
||||||
};
|
};
|
||||||
gc = {
|
|
||||||
automatic = true;
|
|
||||||
persistent = true;
|
|
||||||
dates = "daily";
|
|
||||||
options = "--delete-older-than +5";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
gnome-tweaks # TODO remove
|
||||||
|
btrfs-progs
|
||||||
hyprcursor
|
hyprcursor
|
||||||
grimblast
|
grimblast
|
||||||
neovim
|
neovim
|
||||||
|
@ -181,6 +197,9 @@
|
||||||
ripgrep
|
ripgrep
|
||||||
clang
|
clang
|
||||||
go
|
go
|
||||||
|
lua
|
||||||
|
lua-language-server
|
||||||
|
nil
|
||||||
nixfmt-classic
|
nixfmt-classic
|
||||||
zip
|
zip
|
||||||
nodejs
|
nodejs
|
||||||
|
@ -191,7 +210,7 @@
|
||||||
bibata-cursors
|
bibata-cursors
|
||||||
spotify
|
spotify
|
||||||
jq
|
jq
|
||||||
gnome.gnome-control-center
|
gnome-control-center
|
||||||
pavucontrol
|
pavucontrol
|
||||||
icon-library
|
icon-library
|
||||||
bat
|
bat
|
||||||
|
@ -201,27 +220,9 @@
|
||||||
glib
|
glib
|
||||||
cliphist
|
cliphist
|
||||||
playerctl
|
playerctl
|
||||||
socat
|
|
||||||
adwaita-qt6
|
|
||||||
material-icons
|
material-icons
|
||||||
material-design-icons
|
material-design-icons
|
||||||
material-symbols
|
material-symbols
|
||||||
ddcutil
|
|
||||||
(python311.withPackages (ps: with ps; [
|
|
||||||
pillow
|
|
||||||
material-color-utilities
|
|
||||||
materialyoucolor
|
|
||||||
wheel
|
|
||||||
setuptools-scm
|
|
||||||
libsass
|
|
||||||
pywayland
|
|
||||||
psutil
|
|
||||||
numpy
|
|
||||||
requests
|
|
||||||
pyxdg
|
|
||||||
]))
|
|
||||||
pywal
|
|
||||||
dart-sass
|
|
||||||
imagemagick
|
imagemagick
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -235,6 +236,7 @@
|
||||||
google-fonts
|
google-fonts
|
||||||
material-symbols
|
material-symbols
|
||||||
material-icons
|
material-icons
|
||||||
|
maple-mono
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.gnupg.agent = {
|
programs.gnupg.agent = {
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "ahci" "xhci_pci" "usbhid" "uas" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "nvme" "ahci" "xhci_pci" "usbhid" "uas" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" "amd-pstate" "amdgpu" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/465cd1e9-3e0f-4800-a28e-bde99c2fc6f8";
|
{ device = "/dev/disk/by-uuid/4f1b81d9-6ca7-486c-bf85-72dcc72f525d";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -24,10 +24,16 @@
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
#fileSystems."/var/lib/docker/overlay2/7494aad14765ade76a2ecf82e21a3d20996943b4b3260e74feeeb01734c9db41/merged" =
|
fileSystems."/media" =
|
||||||
# { device = "overlay";
|
{ device = "/dev/disk/by-uuid/ec917008-d804-4134-82b6-f277b6ff9d77";
|
||||||
# fsType = "overlay";
|
fsType = "btrfs";
|
||||||
# };
|
options = [ "async" "auto" "noatime" "rw" "subvolid=5" "subvol=/" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/mnt/arch" =
|
||||||
|
{ device = "/dev/disk/by-uuid/beb59913-0dd6-40e5-bd0b-b004b891d9d3";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/ext" =
|
fileSystems."/mnt/ext" =
|
||||||
{ device = "/dev/disk/by-uuid/43280a82-cf9a-452e-9bdc-a8cc66ccd7c8";
|
{ device = "/dev/disk/by-uuid/43280a82-cf9a-452e-9bdc-a8cc66ccd7c8";
|
||||||
|
@ -35,13 +41,6 @@
|
||||||
options = [ "async" "auto" "nofail" "noatime" ];
|
options = [ "async" "auto" "nofail" "noatime" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/ext/storage" =
|
|
||||||
{ device = "/dev/disk/by-uuid/349dd615-0054-453e-b6bd-a15938bf8366";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "async" "auto" "nofail" "noatime" ];
|
|
||||||
depends = [ "/mnt/ext" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[ { device = "/dev/disk/by-uuid/df753d88-0883-4084-acb3-e8a1d3192603"; }
|
[ { device = "/dev/disk/by-uuid/df753d88-0883-4084-acb3-e8a1d3192603"; }
|
||||||
];
|
];
|
||||||
|
@ -51,10 +50,9 @@
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# 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`.
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.docker0.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp13s0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.enp13s0.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.wlp14s0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.wlp14s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
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 = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue