mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 01:18:30 +09:00
fix
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.my.system.audio;
|
||||
in
|
||||
{
|
||||
options.my.system.audio = {
|
||||
enable = lib.mkEnableOption "Audio support (PipeWire)";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
security.rtkit.enable = true;
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
wireplumber.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -4,8 +4,14 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./nfs.nix
|
||||
./uefi.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
loader.systemd-boot.configurationLimit = lib.mkDefault 8;
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
};
|
||||
programs.nix-ld.enable = true;
|
||||
}
|
||||
|
||||
@@ -14,5 +14,6 @@ in
|
||||
config = lib.mkIf cfg.enable {
|
||||
boot.supportedFilesystems = [ "nfs" ];
|
||||
fuse.userAllowOther = true;
|
||||
services.rpcbind.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
{
|
||||
imports = [
|
||||
./audio.nix
|
||||
./boot
|
||||
./nix.nix
|
||||
./camera.nix
|
||||
./fingerprint.nix
|
||||
./fonts.nix
|
||||
./gc.nix
|
||||
./locale.nix
|
||||
./hardware
|
||||
./locale.nix
|
||||
./network
|
||||
./nix.nix
|
||||
./power.nix
|
||||
./secure-boot.nix
|
||||
./user
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./bluetooth.nix
|
||||
./gui.nix
|
||||
];
|
||||
|
||||
hardware = {
|
||||
enableRedistributableFirmware = lib.mkDefault true;
|
||||
keyboard.qmk.enable = true;
|
||||
};
|
||||
|
||||
services.fwupd.enable = true;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./wifi.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostName = host;
|
||||
|
||||
|
||||
@@ -24,5 +24,14 @@ in
|
||||
services.power-profiles-daemon.enable = true;
|
||||
services.tlp.enable = false;
|
||||
services.upower.enable = true;
|
||||
|
||||
services.logind = {
|
||||
settings.Login = {
|
||||
HandleLidSwitch = "suspend";
|
||||
HandleLidSwitchDocked = "ignore";
|
||||
HandleLidSwitchExternalPower = "suspend";
|
||||
LidSwitchIgnoreInhibited = "no";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
options.my.stateVersions = {
|
||||
nixos = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "25.11";
|
||||
default = "26.05";
|
||||
};
|
||||
|
||||
homeManager = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "25.11";
|
||||
default = "26.05";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user