This commit is contained in:
2025-12-26 10:38:31 +01:00
parent d9b9d82231
commit 62a2847dfa
3 changed files with 47 additions and 52 deletions

View File

@@ -23,7 +23,7 @@
boot = { boot = {
initrd.kernelModules = [ ]; initrd.kernelModules = [ ];
initrd.verbose = false; initrd.verbose = false;
kernelModules = [ "nct6683" ]; kernelModules = [ "nct6683" "hid-logitech-dj" "hid-logiztech-hidpp" ];
blacklistedKernelModules = [ "k10temp" ]; blacklistedKernelModules = [ "k10temp" ];
kernelParams = [ kernelParams = [
"amdgpu.seamless=1" "amdgpu.seamless=1"
@@ -53,6 +53,11 @@
networking = { networking = {
hostName = "epiquev2"; hostName = "epiquev2";
networkmanager.enable = true; networkmanager.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
firewall.enable = false;
}; };
# Set your time zone. # Set your time zone.
@@ -81,7 +86,20 @@
xdg.portal.enable = true; xdg.portal.enable = true;
security.rtkit.enable = true; security = {
rtkit.enable = true;
sudo.extraConfig = ''
Defaults insults
'';
polkit.extraConfig = ''
polkit.addRule(function(action, subject) {
if (action.id == "org.libvirt.unix.manage" &&
subject.isInGroup("qemu-libvirtd")) {
return polkit.Result.YES;
}
});
'';
};
virtualisation = { virtualisation = {
docker = { docker = {
@@ -121,30 +139,6 @@
#packages = with pkgs; [ ]; #packages = with pkgs; [ ];
}; };
# Allow unfree packages
nixpkgs = {
config = {
allowUnfree = true;
permittedInsecurePackages = [
"ventoy-gtk3-1.1.07"
];
};
overlays = [
(final: prev: {
nautilus = prev.nautilus.overrideAttrs (nprev: {
buildInputs =
nprev.buildInputs
++ (with pkgs.gst_all_1; [
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
gst-plugins-base
]);
});
})
];
};
environment = { environment = {
sessionVariables = { sessionVariables = {
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
@@ -204,21 +198,6 @@
enable = true; enable = true;
}; };
security.polkit.extraConfig = ''
polkit.addRule(function(action, subject) {
if (action.id == "org.libvirt.unix.manage" &&
subject.isInGroup("qemu-libvirtd")) {
return polkit.Result.YES;
}
});
'';
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = false;
nix.settings = { nix.settings = {
auto-optimise-store = true; auto-optimise-store = true;
experimental-features = [ experimental-features = [
@@ -226,14 +205,6 @@
"nix-command" "nix-command"
]; ];
warn-dirty = false; warn-dirty = false;
/*
substituters = [
"https://cache.nixos.org/"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59MDW/s82/h4RZcnxaz2bYcxoZb0qwYf5ED+w="
];
*/
}; };
system.stateVersion = "25.05"; system.stateVersion = "25.05";

6
flake.lock generated
View File

@@ -128,11 +128,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1766687550, "lastModified": 1766730473,
"narHash": "sha256-FGuhrdRvxp3DZfRZfA+1mKZIpgTU9Xboq1jVphKm9Go=", "narHash": "sha256-Tvfu5vn7y685n+e8mBWGeP8RjtXFPhsr/RFNSrAs5w8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a3a2ddee4adfb361bdfe2e915c7e85c2e71cfc5f", "rev": "b554487235037f6e18df83617055c2ea4808c89f",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -8,6 +8,30 @@
}: }:
{ {
# Allow unfree packages
nixpkgs = {
config = {
allowUnfree = true;
permittedInsecurePackages = [
"ventoy-gtk3-1.1.07"
];
};
overlays = [
(final: prev: {
nautilus = prev.nautilus.overrideAttrs (nprev: {
buildInputs =
nprev.buildInputs
++ (with pkgs.gst_all_1; [
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
gst-plugins-base
]);
});
})
];
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
abootimg abootimg
amdgpu_top amdgpu_top