nixos-hardware for nolaptop
This commit is contained in:
parent
9d368b6b17
commit
2730602b40
3 changed files with 19 additions and 19 deletions
|
|
@ -84,9 +84,7 @@
|
|||
system = "x86_64-linux";
|
||||
specialArgs = {inherit inputs;};
|
||||
modules = [
|
||||
nixos-hardware.nixosModules.common-cpu-amd
|
||||
nixos-hardware.nixosModules.common-cpu-amd-pstate
|
||||
nixos-hardware.nixosModules.common-gpu-amd
|
||||
nixos-hardware.nixosModules.framework-16-7040-amd
|
||||
agenix.nixosModules.default
|
||||
home-manager.nixosModules.home-manager
|
||||
./systems/BASED.nix
|
||||
|
|
|
|||
|
|
@ -21,23 +21,8 @@
|
|||
nvtopPackages.amd
|
||||
];
|
||||
|
||||
services.tailscale.useRoutingFeatures = "client";
|
||||
|
||||
nix.buildMachines = [
|
||||
{
|
||||
hostName = "nocomputer";
|
||||
systems = ["x86_64-linux" "i686-linux"];
|
||||
supportedFeatures = ["big-parallel" "kvm" "nixos-test" "benchmark"];
|
||||
}
|
||||
];
|
||||
nix.extraOptions = ''
|
||||
builders-use-substitutes = true
|
||||
'';
|
||||
nix.distributedBuilds = true;
|
||||
|
||||
services.power-profiles-daemon.enable = true;
|
||||
services.fwupd.enable = true;
|
||||
services.fprintd.enable = true;
|
||||
services.tailscale.useRoutingFeatures = "client";
|
||||
|
||||
systemd.services."backlight@backlight:amdgpu_bl2".enable = false;
|
||||
|
||||
|
|
@ -79,6 +64,18 @@ AttrKeyboardIntegration=internal";
|
|||
services.displayManager.defaultSession = "plasma";
|
||||
services.displayManager.sddm.wayland.enable = true;
|
||||
|
||||
nix.buildMachines = [
|
||||
{
|
||||
hostName = "nocomputer";
|
||||
systems = ["x86_64-linux" "i686-linux"];
|
||||
supportedFeatures = ["big-parallel" "kvm" "nixos-test" "benchmark"];
|
||||
}
|
||||
];
|
||||
nix.extraOptions = ''
|
||||
builders-use-substitutes = true
|
||||
'';
|
||||
nix.distributedBuilds = true;
|
||||
|
||||
services.udev.extraRules = ''
|
||||
ACTION=="add", SUBSYSTEM=="backlight", RUN+="${pkgs.coreutils}/bin/chgrp video /sys/class/backlight/%k/brightness"
|
||||
ACTION=="add", SUBSYSTEM=="backlight", RUN+="${pkgs.coreutils}/bin/chmod g+w /sys/class/backlight/%k/brightness"
|
||||
|
|
|
|||
|
|
@ -28,4 +28,9 @@ alias ts = tailscale
|
|||
alias tss = tailscale status
|
||||
alias tsx = tailscale exit-node list
|
||||
alias zl = zellij
|
||||
|
||||
def l [] {
|
||||
ls | sort-by type
|
||||
}
|
||||
|
||||
task
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue