Various cleanups

- enable gc
- enable max boot menu entries
- fix spice usb passthrough
- update input flakes
This commit is contained in:
Tristan D. 2023-10-15 21:50:59 +02:00
parent 4967d68647
commit 54f3bbd94d
Signed by: tristan
SSH key fingerprint: SHA256:U7y6eMb7CQDaTHv9XoX6/BaQnPqyxxKc+Xnfcefi6rY
6 changed files with 34 additions and 22 deletions

View file

@ -12,14 +12,18 @@
]; ];
nix = { nix = {
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 2w";
};
settings.auto-optimise-store = true;
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
}; };
boot.plymouth.enable = true;
fonts.fontDir.enable = true; fonts.fontDir.enable = true;
fonts.fonts = with pkgs; [ fonts.fonts = with pkgs; [
emacs-all-the-icons-fonts emacs-all-the-icons-fonts

30
flake.lock generated
View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1696814493, "lastModified": 1697073574,
"narHash": "sha256-1qArVsJGG2RHbV2iKFpAmM5os3myvwpXMOdFy5nh54M=", "narHash": "sha256-Np603TUNj+fzQYmaNPS7pmsy52KHq4fpWP5GCpTJ38Y=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "32ce057c183506cecb0b84950e4eaf39f37e8c75", "rev": "3c41ae36ff12afbada9396c7d8282c2c74f74e06",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -29,11 +29,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1696934970, "lastModified": 1697137147,
"narHash": "sha256-YbBmyDeoyzTeQsx2aO+lijWvYPAOhTjbc5jtqMuH36k=", "narHash": "sha256-s1KYOB3t5TVxQJDlrM699O9Hx7iY/St2UG3SuKnVa4g=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "85b061aefa29e54da20356aaab9abe6a2cb824d7", "rev": "bd5c5e9a9b460a275df97c7226f573cd88cb27ef",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -256,11 +256,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1696697597, "lastModified": 1696983906,
"narHash": "sha256-q26Qv4DQ+h6IeozF2o1secyQG0jt2VUT3V0K58jr3pg=", "narHash": "sha256-L7GyeErguS7Pg4h8nK0wGlcUTbfUMDu+HMf1UcyP72k=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5a237aecb57296f67276ac9ab296a41c23981f56", "rev": "bd1cde45c77891214131cbbea5b1203e485a9d51",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -272,11 +272,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1696697597, "lastModified": 1696983906,
"narHash": "sha256-q26Qv4DQ+h6IeozF2o1secyQG0jt2VUT3V0K58jr3pg=", "narHash": "sha256-L7GyeErguS7Pg4h8nK0wGlcUTbfUMDu+HMf1UcyP72k=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5a237aecb57296f67276ac9ab296a41c23981f56", "rev": "bd1cde45c77891214131cbbea5b1203e485a9d51",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -320,11 +320,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1696933074, "lastModified": 1697143503,
"narHash": "sha256-+3fj5mFSySFv0e5Ye48soZqpbE1lmCq1k9Vmn9b1RhY=", "narHash": "sha256-5lZLEItkQ0vxTkV/y8cjNQLUBJ/Tzoy59SIMMogivVk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "2ffd7dddfc5cfb37cfa710ebe5152b101b328a77", "rev": "a2abe52ec7b548f6a1629be6436ad819d2b3985c",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -58,14 +58,13 @@
outputs = inputs: let outputs = inputs: let
system = "x86_64-linux"; system = "x86_64-linux";
customPkgs = import inputs.nixpkgs { pkgs = import inputs.nixpkgs {
system = "${system}"; system = "${system}";
overlays = [inputs.emacs-overlay.overlay]; overlays = [inputs.emacs-overlay.overlay];
config = { config = {
allowUnfree = true; allowUnfree = true;
}; };
}; };
pkgs = customPkgs;
in { in {
formatter = { formatter = {
${system} = pkgs.alejandra; ${system} = pkgs.alejandra;
@ -104,7 +103,8 @@
{ {
_module.args.inputs = inputs; _module.args.inputs = inputs;
_module.args.system = system; _module.args.system = system;
nixpkgs.pkgs = customPkgs; nixpkgs.pkgs = pkgs;
nix.registry.nixpkgs.flake = inputs.nixpkgs;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.sharedModules = [ home-manager.sharedModules = [

View file

@ -13,7 +13,10 @@
boot = { boot = {
kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_latest;
loader = { loader = {
systemd-boot.enable = true; systemd-boot = {
enable = true;
configurationLimit = 20;
};
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };

View file

@ -8,7 +8,7 @@
doomemacsSrc = builtins.fetchGit { doomemacsSrc = builtins.fetchGit {
url = "https://github.com/doomemacs/doomemacs"; url = "https://github.com/doomemacs/doomemacs";
ref = "master"; ref = "master";
rev = "844a82c4a0cacbb5a1aa558c88675ba1a9ee80a3"; rev = "986398504d09e585c7d1a8d73a6394024fe6f164";
}; };
personalDoomConfSrc = builtins.fetchGit { personalDoomConfSrc = builtins.fetchGit {

View file

@ -9,6 +9,7 @@
virt-manager virt-manager
virt-viewer virt-viewer
virt-top virt-top
spice-gtk
]; ];
virtualisation.docker = { virtualisation.docker = {
@ -30,6 +31,10 @@
}; };
}; };
services.udev.extraRules = ''
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664", GROUP="wheel"
'';
# virtualisation.libvirtd.allowedBridges = [ # virtualisation.libvirtd.allowedBridges = [
# "virbr0" # "virbr0"
# "testbr0" # "testbr0"