diff --git a/os/basado/configuration.nix b/os/basado/configuration.nix index 0078dcf..ed2033a 100644 --- a/os/basado/configuration.nix +++ b/os/basado/configuration.nix @@ -11,6 +11,7 @@ in (import ../remote-disk-unlock.nix ["igb"] sshKeys) ../builder.nix ../kdeconnect-ports.nix + (import ../swapfile.nix 64) ]; boot.loader = { @@ -29,11 +30,6 @@ in hardware.bluetooth.enable = true; # enables support for Bluetooth hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot - swapDevices = [{ - device = "/var/lib/swapfile"; - size = 64 * 1024; - }]; - boot.kernelParams = [ "quiet" "amd_iommu=on" ]; boot.supportedFilesystems = [ "ntfs" ]; networking.hostName = "basado"; # Define your hostname. diff --git a/os/ccache.nix b/os/ccache.nix new file mode 100644 index 0000000..8e03016 --- /dev/null +++ b/os/ccache.nix @@ -0,0 +1,5 @@ +{ config, ... }: +{ + programs.ccache.enable = true; + nix.settings.extra-sandbox-paths = [ config.programs.ccache.cacheDir ]; +} diff --git a/os/hs/configuration.nix b/os/hs/configuration.nix index e243959..7806ad4 100644 --- a/os/hs/configuration.nix +++ b/os/hs/configuration.nix @@ -19,6 +19,8 @@ in { ../forgejo.nix (import ../remote-disk-unlock.nix ["r8169"] sshKeys) ../builder.nix + ../ccache.nix + (import ../swapfile.nix 64) ]; boot = { diff --git a/os/swapfile.nix b/os/swapfile.nix new file mode 100644 index 0000000..a20bddf --- /dev/null +++ b/os/swapfile.nix @@ -0,0 +1,9 @@ +sizeGiB: +{ + swapDevices = [ + { + device = "/var/lib/swapfile"; + size = sizeGiB * 1024; + } + ]; +}