This commit is contained in:
2026-05-30 22:11:33 +09:00
parent 5f1cfc5275
commit 394638638d
26 changed files with 107 additions and 43 deletions
+22
View File
@@ -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;
};
};
}
+6
View File
@@ -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;
}
+1
View File
@@ -14,5 +14,6 @@ in
config = lib.mkIf cfg.enable {
boot.supportedFilesystems = [ "nfs" ];
fuse.userAllowOther = true;
services.rpcbind.enable = true;
};
}
+3 -2
View File
@@ -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
+7
View File
@@ -1,7 +1,14 @@
{ lib, ... }:
{
imports = [
./bluetooth.nix
./gui.nix
];
hardware = {
enableRedistributableFirmware = lib.mkDefault true;
keyboard.qmk.enable = true;
};
services.fwupd.enable = true;
}
+4
View File
@@ -4,6 +4,10 @@
...
}:
{
imports = [
./wifi.nix
];
networking = {
hostName = host;
+9
View File
@@ -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";
};
};
};
}
+2 -2
View File
@@ -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";
};
};