mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-07-04 09:51:47 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0e2a8ed3ed |
@@ -6,10 +6,13 @@ in
|
||||
security.polkit.enable = true;
|
||||
|
||||
environment.etc."polkit-1/rules.d/9-nixos-overrides.rules".text = lib.mkIf cfg.enable ''
|
||||
polkit.addAdminRule(function(action, subject) {
|
||||
if(subject.isInGroup("wheel")) {
|
||||
return ["unix-user:"+subject.user];
|
||||
}
|
||||
});
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (
|
||||
action.id.startsWith("org.freedesktop.systemd1.") &&
|
||||
subject.isInGroup("wheel")
|
||||
) {
|
||||
return polkit.Result.AUTH_SELF_KEEP;
|
||||
}
|
||||
});
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
# Do modify this file! It was generated by „nixos-generate-config“
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix and run ⟪nix-env --switch-profile⟫ instead.
|
||||
{ config, lib, pkgs, modulesPath, home-manager, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "af_alg" "esp4" "esp6" "rds" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/sdj1";
|
||||
fsType = "bcachefs";
|
||||
};
|
||||
|
||||
fileSystems."/boott" =
|
||||
{ device = "/dev/disk/by-uuid/AAAA-AAAA";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
# 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.interfaces.em1.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.em2.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.pflog0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "i686-freebsd";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.infiniband.enable = true;
|
||||
hardware.flipperzero.enable = lib.mkIf (config.security.isolate.cgRoot == "auto:/run/isolate/tank") true;
|
||||
}
|
||||
Reference in New Issue
Block a user