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
|
@ -2,7 +2,7 @@
|
|||
|
||||
{
|
||||
custom.zfs.homeLinks = [
|
||||
{ path = ".dropbox"; type = "data"; }
|
||||
{ path = ".dropbox"; type = "cache"; }
|
||||
{ path = "Dropbox"; type = "data"; }
|
||||
];
|
||||
home-manager.users.charlotte = { pkgs, ... }: {
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
let
|
||||
metadata = import ./metadata.nix;
|
||||
in
|
||||
builtins.fetchTarball {
|
||||
url = "https://github.com/NixOS/nixos-hardware/archive/${metadata.rev}.tar.gz";
|
||||
sha256 = metadata.sha256;
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
url = "https://github.com/NixOS/nixos-hardware/archive/master.tar.gz";
|
||||
repo_git = "https://github.com/NixOS/nixos-hardware";
|
||||
branch = "master";
|
||||
rev = "cc353d439e3135dbe3f5473d897d2c35537f260c";
|
||||
sha256 = "1vwjdbl7x5nx3i6x4xqqsbfwm5kby4qskr1yrx5sv849560ag4dm";
|
||||
revdate = "2020-07-06 16:22:31 +0100";
|
||||
skip = false;
|
||||
}
|
|
@ -2,8 +2,8 @@
|
|||
url = "https://github.com/charvp/nixpkgs/archive/master.tar.gz";
|
||||
repo_git = "https://github.com/charvp/nixpkgs";
|
||||
branch = "master";
|
||||
rev = "0a76d3a9b33ab414a8719a1a9d6a4aa7eb09a999";
|
||||
sha256 = "0q7hvlf3p1say0j8jw4wzq6w27p3k4xbklcchx08wahvp41lgmix";
|
||||
revdate = "2020-07-10 09:47:22 +0200";
|
||||
rev = "901695dcaa0c0143def8ad5ad75834e3a5bcc478";
|
||||
sha256 = "1w26a7c0yhxv8qa1msylbq3qifxramrnsgdaplyjy5sbs61i95hr";
|
||||
revdate = "2020-07-11 13:04:15 +0200";
|
||||
skip = false;
|
||||
}
|
||||
|
|
|
@ -1,14 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
findImport = (import ../../lib.nix).findImport;
|
||||
nixos-hardware = findImport "nixos-hardware";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
"${nixos-hardware}/common/cpu/intel"
|
||||
"${nixos-hardware}/common/pc/laptop"
|
||||
"${nixos-hardware}/common/pc/laptop/ssd"
|
||||
./hardware.nix
|
||||
./secret.nix
|
||||
../../configurations/eid.nix
|
||||
|
@ -17,7 +10,10 @@ in
|
|||
../../profiles/graphical.nix
|
||||
];
|
||||
|
||||
networking.hostName = "oldtown";
|
||||
networking = {
|
||||
hostId = "e718389d";
|
||||
hostName = "kharbranth";
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Brussels";
|
||||
|
||||
|
@ -27,14 +23,18 @@ in
|
|||
# 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.03";
|
||||
system.stateVersion = "20.09";
|
||||
|
||||
home-manager.users.charlotte = { ... }: {
|
||||
home.stateVersion = "20.03";
|
||||
home.stateVersion = "20.09";
|
||||
};
|
||||
|
||||
# Machine-specific application settings
|
||||
custom = {
|
||||
git.email = "charlotte.vanpetegem@ugent.be";
|
||||
zfs = {
|
||||
enable = true;
|
||||
encrypted = true;
|
||||
};
|
||||
};
|
||||
}
|
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.
|
@ -1,12 +1,7 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
findImport = (import ../../lib.nix).findImport;
|
||||
nixos-hardware = findImport "nixos-hardware";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
"${nixos-hardware}/lenovo/thinkpad/t490"
|
||||
./hardware.nix
|
||||
./secret.nix
|
||||
../../configurations/eid.nix
|
||||
|
|
|
@ -48,7 +48,6 @@
|
|||
{ device = "/dev/disk/by-uuid/6c09b90f-8971-4702-a18a-f06dfb3d8dcd"; }
|
||||
];
|
||||
|
||||
nix.maxJobs = lib.mkDefault 8;
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.cpu.intel.updateMicrocode = true;
|
||||
}
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
initrd = {
|
||||
availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
kernelModules = [ "i915" ];
|
||||
};
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
extraModulePackages = [ ];
|
||||
};
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/e4b7eae2-546d-412b-9258-389315f4b835";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/A4C4-7B9F";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/72c82e3c-ea61-488b-8b24-b3c27368a2ba"; }
|
||||
];
|
||||
|
||||
nix.maxJobs = lib.mkDefault 8;
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.cpu.intel.updateMicrocode = true;
|
||||
}
|
Binary file not shown.
|
@ -8,7 +8,7 @@ buildGradle {
|
|||
envSpec = ./gradle-env.json;
|
||||
src = fetchTarball {
|
||||
url = "https://github.com/fwcd/kotlin-language-server/archive/master.tar.gz";
|
||||
sha256 = "16qddjwcj1n79c4p9dqlj1vg6yg5rkvzb8r15jbyxsy82mp6ib3k";
|
||||
sha256 = "0by07h2ly84dzmwzjf3fsgghm3fwhyhhbnnv3kl7dy1iajhl4shj";
|
||||
};
|
||||
gradleFlags = [ "server:installDist" ];
|
||||
installPhase = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue