mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2025-06-15 08:44:37 +02:00
Compare commits
13 commits
79d73140ee
...
bc909ffbf4
Author | SHA1 | Date | |
---|---|---|---|
bc909ffbf4 | |||
ab894097d1 | |||
06cc8323e7 | |||
c2b709adf9 | |||
30925fcaab | |||
f3f1171242 | |||
47e4028808 | |||
13f772e4af | |||
deed8c8905 | |||
c9de18d673 | |||
cc5031e13a | |||
bb2bdbef5e | |||
cafc91a47d |
13 changed files with 163 additions and 189 deletions
|
@ -13,31 +13,22 @@
|
|||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/7b55546f-7bd5-4b46-b5b1-1c81fdd8509c";
|
||||
fsType = "ext4";
|
||||
};
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/caa83e18-f2f2-46f9-8c27-0842c3051dc1";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=@" ];
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/5A04-0844";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/DADB-44A9";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/data" = {
|
||||
|
@ -47,10 +38,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/da98aab4-f3a5-439b-aab5-b78624c219d3"; }
|
||||
];
|
||||
|
||||
# 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
|
||||
|
@ -60,5 +47,6 @@
|
|||
# networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
@ -33,6 +33,8 @@
|
|||
};
|
||||
*/
|
||||
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
nix = {
|
||||
package = lib.mkDefault pkgs.lix;
|
||||
};
|
||||
|
|
|
@ -14,15 +14,13 @@
|
|||
# Bootloader.
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
# extraInstallCommands = ''
|
||||
# ${pkgs.gnused}/bin/sed -i "/default/c\default @saved" /boot/loader/loader.conf
|
||||
# '';
|
||||
grub = {
|
||||
efiSupport = true;
|
||||
device = "nodev";
|
||||
};
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
# kernelPackages = pkgs.linuxPackages_latest;
|
||||
kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
||||
binfmt.registrations.appimage = {
|
||||
wrapInterpreterInShell = false;
|
||||
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
|
||||
|
@ -31,6 +29,7 @@
|
|||
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
|
||||
magicOrExtension = ''\x7fELF....AI\x02'';
|
||||
};
|
||||
plymouth.enable = true;
|
||||
};
|
||||
|
||||
networking.hostName = "thilo-pc";
|
||||
|
@ -44,15 +43,14 @@
|
|||
layout = "us";
|
||||
variant = "";
|
||||
};
|
||||
blueman.enable = true;
|
||||
# AI
|
||||
ollama = {
|
||||
enable = true;
|
||||
acceleration = "rocm";
|
||||
};
|
||||
open-webui = {
|
||||
enable = true;
|
||||
};
|
||||
# ollama = {
|
||||
# enable = true;
|
||||
# acceleration = "rocm";
|
||||
# };
|
||||
# open-webui = {
|
||||
# enable = true;
|
||||
# };
|
||||
};
|
||||
|
||||
programs.kdeconnect.enable = true;
|
||||
|
@ -167,6 +165,7 @@
|
|||
};
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
|
||||
programs.steam.gamescopeSession = {
|
||||
enable = false;
|
||||
|
@ -192,5 +191,16 @@
|
|||
];
|
||||
};
|
||||
|
||||
programs.gamescope.enable = true;
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
kdePackages.skanpage
|
||||
];
|
||||
|
||||
services.resolved = {
|
||||
enable = true;
|
||||
domains = [ "~." ];
|
||||
};
|
||||
}
|
||||
|
|
153
flake.lock
generated
153
flake.lock
generated
|
@ -7,11 +7,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1738168120,
|
||||
"narHash": "sha256-cosgDY/jljg2Ha41MEypQ2wm14/iYdbUR/UscT7WVh8=",
|
||||
"lastModified": 1740026216,
|
||||
"narHash": "sha256-wRW107bfN9jOrFHZdT7JUNw/RDn2BNxInqLLDKsgodk=",
|
||||
"owner": "dagger",
|
||||
"repo": "nix",
|
||||
"rev": "a571c974309b64692f9fb6abb09795201c6f5402",
|
||||
"rev": "578e8c28bba72e4269cfe15de4a7097c1b3ebcff",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -36,24 +36,6 @@
|
|||
}
|
||||
},
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils_2": {
|
||||
"locked": {
|
||||
"lastModified": 1659877975,
|
||||
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
|
||||
|
@ -68,9 +50,9 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils_3": {
|
||||
"flake-utils_2": {
|
||||
"inputs": {
|
||||
"systems": "systems_3"
|
||||
"systems": "systems_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1710146030,
|
||||
|
@ -93,11 +75,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1738878603,
|
||||
"narHash": "sha256-fmhq8B3MvQLawLbMO+LWLcdC2ftLMmwSk+P29icJ3tE=",
|
||||
"lastModified": 1740265252,
|
||||
"narHash": "sha256-+LFsCsIUF/pJWL9S21m5NLcK5bgwRB4MwfV0Iu7tggY=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "433799271274c9f2ab520a49527ebfe2992dcfbd",
|
||||
"rev": "fb568d75cf6c81f30d49eeb73787e9b56454ba16",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -112,7 +94,7 @@
|
|||
"nixpkgs-update",
|
||||
"nixpkgs"
|
||||
],
|
||||
"systems": "systems_2"
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1710694589,
|
||||
|
@ -151,17 +133,15 @@
|
|||
"nix-alien": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat",
|
||||
"flake-utils": "flake-utils",
|
||||
"nix-filter": "nix-filter",
|
||||
"nix-index-database": "nix-index-database",
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1736952083,
|
||||
"narHash": "sha256-zLhLqxc2JKvUtr0mSRRvOeKXN5dl5bn1e99z7EOp3bI=",
|
||||
"lastModified": 1740094523,
|
||||
"narHash": "sha256-vGxTGexcKN8BVunczdqps1dbu0khOFp0++Gvip9QZJ8=",
|
||||
"owner": "thiagokokada",
|
||||
"repo": "nix-alien",
|
||||
"rev": "7e687663d2054fa1708284bd42731c6be62b1667",
|
||||
"rev": "ab175cdbbad2a93afc86125eb0835694b005b2fb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -170,21 +150,6 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-filter": {
|
||||
"locked": {
|
||||
"lastModified": 1731533336,
|
||||
"narHash": "sha256-oRam5PS1vcrr5UPgALW0eo1m/5/pls27Z/pabHNy2Ms=",
|
||||
"owner": "numtide",
|
||||
"repo": "nix-filter",
|
||||
"rev": "f7653272fd234696ae94229839a99b73c9ab7de0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "nix-filter",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-index-database": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -193,11 +158,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1736652904,
|
||||
"narHash": "sha256-8uolHABgroXqzs03QdulHp8H9e5kWQZnnhcda1MKbBM=",
|
||||
"lastModified": 1739071773,
|
||||
"narHash": "sha256-/Ak+Quinhmdxa9m3shjm4lwwwqmzG8zzGhhhhgR1k9I=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-index-database",
|
||||
"rev": "271e5bd7c57e1f001693799518b10a02d1123b12",
|
||||
"rev": "895d81b6228bbd50a6ef22f5a58a504ca99763ea",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -208,7 +173,7 @@
|
|||
},
|
||||
"nixgl": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_2",
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
|
@ -229,11 +194,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1736798957,
|
||||
"narHash": "sha256-qwpCtZhSsSNQtK4xYGzMiyEDhkNzOCz/Vfu4oL2ETsQ=",
|
||||
"lastModified": 1739446958,
|
||||
"narHash": "sha256-+/bYK3DbPxMIvSL4zArkMX0LQvS7rzBKXnDXLfKyRVc=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "9abb87b552b7f55ac8916b6fc9e5cb486656a2f3",
|
||||
"rev": "2ff53fe64443980e139eaa286017f53f88336dd0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -266,11 +231,11 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1738680400,
|
||||
"narHash": "sha256-ooLh+XW8jfa+91F1nhf9OF7qhuA/y1ChLx6lXDNeY5U=",
|
||||
"lastModified": 1739866667,
|
||||
"narHash": "sha256-EO1ygNKZlsAC9avfcwHkKGMsmipUk1Uc0TbrEZpkn64=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "799ba5bffed04ced7067a91798353d360788b30d",
|
||||
"rev": "73cf49b8ad837ade2de76f87eb53fc85ed5d4680",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -319,8 +284,7 @@
|
|||
"nixgl": "nixgl",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"nixpkgs-update": "nixpkgs-update",
|
||||
"suyu": "suyu",
|
||||
"w17": "w17"
|
||||
"suyu": "suyu"
|
||||
}
|
||||
},
|
||||
"runtimeDeps": {
|
||||
|
@ -341,7 +305,7 @@
|
|||
},
|
||||
"suyu": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_3",
|
||||
"flake-utils": "flake-utils_2",
|
||||
"nixpkgs": "nixpkgs_4"
|
||||
},
|
||||
"locked": {
|
||||
|
@ -388,36 +352,6 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems_3": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems_4": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"treefmt-nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -438,45 +372,6 @@
|
|||
"repo": "treefmt-nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"utils": {
|
||||
"inputs": {
|
||||
"systems": "systems_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709126324,
|
||||
"narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "d465f4819400de7c8d874d50b982301f28a84605",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"w17": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"utils": "utils"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709679417,
|
||||
"narHash": "sha256-I1f3QEmM/ktBVlVk9CvoBtS7/CBlgV4vSgIR20u82lc=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "92b5e8a6e3710073c68a629a52a964e1ffd6c4a1",
|
||||
"revCount": 2,
|
||||
"type": "git",
|
||||
"url": "https://git.darmstadt.ccc.de/avocadoom/w17-cli.git"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "https://git.darmstadt.ccc.de/avocadoom/w17-cli.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
|
|
@ -22,10 +22,6 @@
|
|||
url = "github:thilobillerbeck/muse-sounds-manager-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
w17 = {
|
||||
url = "git+https://git.darmstadt.ccc.de/avocadoom/w17-cli.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
suyu.url = "github:Noodlez1232/suyu-flake";
|
||||
nix-alien.url = "github:thiagokokada/nix-alien";
|
||||
};
|
||||
|
@ -36,12 +32,14 @@
|
|||
"https://nix-community.cachix.org"
|
||||
"https://nixpkgs-update.cachix.org"
|
||||
"https://devenv.cachix.org"
|
||||
"https://cache.garnix.io"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
"nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8="
|
||||
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
|
||||
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -50,7 +48,6 @@
|
|||
nixpkgs,
|
||||
home-manager,
|
||||
nixgl,
|
||||
w17,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
|
|
10
fonts.nix
Normal file
10
fonts.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
fonts = with pkgs; [
|
||||
nerd-fonts.jetbrains-mono
|
||||
nerd-fonts.fira-code
|
||||
nerd-fonts.fira-mono
|
||||
inter
|
||||
];
|
||||
}
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
fontfile = import ./../../fonts.nix { inherit pkgs; };
|
||||
nixGL = config.lib.nixGL.wrap;
|
||||
electronFlags = "--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime --disable-gpu-shader-disk-cache -n";
|
||||
in
|
||||
|
@ -76,11 +77,8 @@ in
|
|||
nil
|
||||
nixd
|
||||
unrar
|
||||
inputs.w17.packages.x86_64-linux.default
|
||||
# inputs.w17.packages.x86_64-linux.default
|
||||
aichat
|
||||
nerd-fonts.jetbrains-mono
|
||||
nerd-fonts.fira-code
|
||||
nerd-fonts.fira-mono
|
||||
nix-output-monitor
|
||||
nodePackages.pnpm
|
||||
npm-check-updates
|
||||
|
@ -102,11 +100,10 @@ in
|
|||
++ (
|
||||
if (!config.machine.isGeneric) then
|
||||
[
|
||||
toolbox
|
||||
distrobox
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
fontfile.fonts
|
||||
)
|
||||
++ (
|
||||
if (config.machine.isGraphical) then
|
||||
|
@ -167,6 +164,8 @@ in
|
|||
audacity
|
||||
signal-desktop
|
||||
telegram-desktop
|
||||
thunderbird
|
||||
gearlever
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
|
|
|
@ -19,7 +19,7 @@ let
|
|||
"bmnlcjabgnpnenekpadlanbbkooimhnj" # Honey
|
||||
"kbfnbcaeplbcioakkpcpgfkobkghlhen" # Grammarly
|
||||
];
|
||||
isEnabled = if (config.machine.isGraphical && !config.machine.isGeneric) then true else false;
|
||||
isEnabled = if (config.machine.isGraphical) then true else false;
|
||||
dictionaries = with pkgs.hunspellDictsChromium; [
|
||||
en_US
|
||||
de_DE
|
||||
|
@ -33,10 +33,12 @@ let
|
|||
"--enable-features=WaylandWindowDecorations,VaapiVideoDecoder,VaapiVideoEncoder,VaapiVideoDecodeLinuxGL,WebRTCPipeWireCapturer"
|
||||
];
|
||||
extensions = map (eid: { id = eid; }) chromium_extension;
|
||||
nixGL = config.lib.nixGL.wrap;
|
||||
in
|
||||
{
|
||||
programs.brave = {
|
||||
# inherit commandLineArgs;
|
||||
enable = isEnabled;
|
||||
package = if (!config.machine.isGeneric) then pkgs.brave else (nixGL pkgs.brave);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -15,14 +15,15 @@ in
|
|||
assume_yes = true;
|
||||
ignore_failures = [ "git_repos" ];
|
||||
no_retry = true;
|
||||
pre_sudo = false;
|
||||
cleanup = true;
|
||||
pre_sudo = if (config.machine.isGeneric) then false else true;
|
||||
cleanup = if (config.machine.isGeneric) then true else false;
|
||||
skip_notify = true;
|
||||
disable = [
|
||||
"bun"
|
||||
"tldr"
|
||||
"flutter"
|
||||
"nix"
|
||||
"uv"
|
||||
];
|
||||
};
|
||||
git.repos = [ configPath ];
|
||||
|
@ -32,10 +33,19 @@ in
|
|||
pre_commands = {
|
||||
flakeUpgrade = "cd ${configPath} && ${pkgs.nixVersions.latest}/bin/nix flake update --commit-lock-file --verbose --repair";
|
||||
};
|
||||
post_commands = {
|
||||
nixCollectGarbage = "nix-collect-garbage -d";
|
||||
dockerPrune = "docker system prune -f";
|
||||
};
|
||||
post_commands =
|
||||
{
|
||||
dockerPrune = "docker system prune -f";
|
||||
}
|
||||
// (
|
||||
if (config.machine.isGeneric) then
|
||||
{
|
||||
nixCollectGarbage = "nix-collect-garbage -d";
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,5 +3,48 @@
|
|||
{
|
||||
programs.zed-editor = {
|
||||
enable = if (config.machine.isGraphical && !config.machine.isGeneric) then true else false;
|
||||
extensions = [
|
||||
"xy-zed"
|
||||
"nix"
|
||||
"material-icon-theme"
|
||||
];
|
||||
userSettings = {
|
||||
telemetry = {
|
||||
metrics = false;
|
||||
};
|
||||
theme = {
|
||||
mode = "system";
|
||||
dark = "XY-Zed";
|
||||
light = "XY-Zed";
|
||||
};
|
||||
ui_font_family = "JetBrainsMono Nerd Font";
|
||||
ui_font_size = 16;
|
||||
buffer_font_family = "JetBrainsMono Nerd Font";
|
||||
buffer_font_size = 18;
|
||||
restore_on_startup = "none";
|
||||
auto_update = false;
|
||||
icon_theme = "Material Icon Theme";
|
||||
hour_format = "hour24";
|
||||
tabs = {
|
||||
file_icons = true;
|
||||
git_status = true;
|
||||
};
|
||||
indent_guides = {
|
||||
enable = true;
|
||||
};
|
||||
languages = {
|
||||
Nix = {
|
||||
formatter = {
|
||||
external = {
|
||||
command = "nixfmt";
|
||||
arguments = [
|
||||
"--quiet"
|
||||
"--"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
enable = true;
|
||||
autosuggestion.enable = true;
|
||||
enableCompletion = true;
|
||||
completionInit = "autoload -U compinit && compinit -i";
|
||||
enableVteIntegration = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
shellAliases = {
|
||||
|
|
2
nix.nix
2
nix.nix
|
@ -17,12 +17,14 @@
|
|||
"https://nix-community.cachix.org"
|
||||
"https://nixpkgs-update.cachix.org"
|
||||
"https://devenv.cachix.org"
|
||||
"https://cache.garnix.io"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
"nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8="
|
||||
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
|
||||
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
...
|
||||
}:
|
||||
|
||||
let
|
||||
fontfile = import ./../fonts.nix { inherit pkgs; };
|
||||
in
|
||||
{
|
||||
imports = [ ./../nix.nix ];
|
||||
|
||||
|
@ -71,13 +74,17 @@
|
|||
|
||||
virtualisation = {
|
||||
docker.enable = true;
|
||||
podman.enable = false;
|
||||
podman.enable = true;
|
||||
};
|
||||
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
programs = {
|
||||
steam.enable = true;
|
||||
steam = {
|
||||
enable = true;
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
protontricks.enable = true;
|
||||
};
|
||||
zsh.enable = true;
|
||||
adb.enable = true;
|
||||
noisetorch.enable = false;
|
||||
|
@ -107,8 +114,8 @@
|
|||
};
|
||||
flatpak.enable = true;
|
||||
avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
# enable = true;
|
||||
# nssmdns4 = true;
|
||||
};
|
||||
mullvad-vpn = {
|
||||
enable = true;
|
||||
|
@ -119,6 +126,7 @@
|
|||
packages = [ pkgs.dconf ];
|
||||
};
|
||||
bamf.enable = true;
|
||||
fwupd.enable = true;
|
||||
};
|
||||
|
||||
hardware = {
|
||||
|
@ -132,4 +140,11 @@
|
|||
security.rtkit.enable = true;
|
||||
|
||||
time.hardwareClockInLocalTime = true;
|
||||
|
||||
fonts.packages =
|
||||
fontfile.fonts
|
||||
++ (with pkgs; [
|
||||
noto-fonts
|
||||
]);
|
||||
fonts.enableDefaultPackages = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue