Compare commits
2 commits
b3a3e27569
...
4d8c3fddd0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d8c3fddd0 | ||
|
|
87b3f3e5bd |
4 changed files with 17 additions and 5 deletions
|
|
@ -11,6 +11,7 @@ in
|
||||||
(import ../remote-disk-unlock.nix ["igb"] sshKeys)
|
(import ../remote-disk-unlock.nix ["igb"] sshKeys)
|
||||||
../builder.nix
|
../builder.nix
|
||||||
../kdeconnect-ports.nix
|
../kdeconnect-ports.nix
|
||||||
|
(import ../swapfile.nix 64)
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
|
|
@ -29,11 +30,6 @@ in
|
||||||
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
||||||
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
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.kernelParams = [ "quiet" "amd_iommu=on" ];
|
||||||
boot.supportedFilesystems = [ "ntfs" ];
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
networking.hostName = "basado"; # Define your hostname.
|
networking.hostName = "basado"; # Define your hostname.
|
||||||
|
|
|
||||||
5
os/ccache.nix
Normal file
5
os/ccache.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
programs.ccache.enable = true;
|
||||||
|
nix.settings.extra-sandbox-paths = [ config.programs.ccache.cacheDir ];
|
||||||
|
}
|
||||||
|
|
@ -19,6 +19,8 @@ in {
|
||||||
../forgejo.nix
|
../forgejo.nix
|
||||||
(import ../remote-disk-unlock.nix ["r8169"] sshKeys)
|
(import ../remote-disk-unlock.nix ["r8169"] sshKeys)
|
||||||
../builder.nix
|
../builder.nix
|
||||||
|
../ccache.nix
|
||||||
|
(import ../swapfile.nix 64)
|
||||||
];
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
|
|
|
||||||
9
os/swapfile.nix
Normal file
9
os/swapfile.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
sizeGiB:
|
||||||
|
{
|
||||||
|
swapDevices = [
|
||||||
|
{
|
||||||
|
device = "/var/lib/swapfile";
|
||||||
|
size = sizeGiB * 1024;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue