Move oldtown to ZFS and rename to kharbranth
This commit is contained in:
parent
83e875c687
commit
b770f3ddb6
13 changed files with 71 additions and 73 deletions
40
machines/kharbranth/configuration.nix
Normal file
40
machines/kharbranth/configuration.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware.nix
|
||||
./secret.nix
|
||||
../../configurations/eid.nix
|
||||
../../profiles/bluetooth.nix
|
||||
../../profiles/common.nix
|
||||
../../profiles/graphical.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostId = "e718389d";
|
||||
hostName = "kharbranth";
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Brussels";
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "20.09";
|
||||
|
||||
home-manager.users.charlotte = { ... }: {
|
||||
home.stateVersion = "20.09";
|
||||
};
|
||||
|
||||
# Machine-specific application settings
|
||||
custom = {
|
||||
git.email = "charlotte.vanpetegem@ugent.be";
|
||||
zfs = {
|
||||
enable = true;
|
||||
encrypted = true;
|
||||
};
|
||||
};
|
||||
}
|
9
machines/kharbranth/default.nix
Normal file
9
machines/kharbranth/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
let
|
||||
lib = import ../../lib.nix;
|
||||
system = lib.mkSystem {
|
||||
nixpkgs = (lib.findImport "nixpkgs");
|
||||
extraModules = [ ./configuration.nix ];
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
in
|
||||
system.config.system.build.toplevel
|
56
machines/kharbranth/hardware.nix
Normal file
56
machines/kharbranth/hardware.nix
Normal file
|
@ -0,0 +1,56 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot = {
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
initrd = {
|
||||
availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
kernelModules = [ "i915" ];
|
||||
};
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
extraModulePackages = [ ];
|
||||
};
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "rpool/local/root";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/nix" = {
|
||||
device = "rpool/local/nix";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/nix/store" = {
|
||||
device = "rpool/local/nix-store";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/A5BA-352A";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
fileSystems."/cache" = {
|
||||
device = "rpool/local/cache";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/data" = {
|
||||
device = "rpool/safe/data";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/1de27da4-5e97-4104-ab2b-18ab14a2b90b"; }
|
||||
];
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.cpu.intel.updateMicrocode = true;
|
||||
}
|
BIN
machines/kharbranth/secret.nix
Normal file
BIN
machines/kharbranth/secret.nix
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue