Add Tablet
This commit is contained in:
parent
380393b423
commit
fa8299ee29
11 changed files with 150 additions and 1 deletions
|
@ -61,6 +61,7 @@
|
|||
|
||||
envy = mkNix [ ./hosts/envy ]; # HP Convertable
|
||||
pear = mkNix [ ./hosts/pear ]; # MacBook Pro
|
||||
intuos = mkNix [ ./hosts/intuos ]; # Wacom Intuos Tablet
|
||||
redmond = mkNix [ ./hosts/redmond ]; # Lenovo Dual-Boot
|
||||
iso = mkNix [ ./hosts/iso ]; # ISO File
|
||||
|
||||
|
|
4
hosts/intuos/boot/default.nix
Normal file
4
hosts/intuos/boot/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
}
|
21
hosts/intuos/default.nix
Normal file
21
hosts/intuos/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./boot
|
||||
./disko
|
||||
./filesystems
|
||||
./hardware
|
||||
./users
|
||||
../../modules/system
|
||||
];
|
||||
|
||||
networking.hostName = "intuos";
|
||||
|
||||
system = {
|
||||
desktop.enable = true;
|
||||
lanzaboote.enable = true;
|
||||
fancyboot.enable = true;
|
||||
wireless.enable = true;
|
||||
stateVersion = "24.11";
|
||||
};
|
||||
}
|
90
hosts/intuos/disko/default.nix
Normal file
90
hosts/intuos/disko/default.nix
Normal file
|
@ -0,0 +1,90 @@
|
|||
{ config, disko, ... }:
|
||||
{
|
||||
imports = [ disko.nixosModules.disko ];
|
||||
|
||||
disko.devices = {
|
||||
disk = {
|
||||
"${config.networking.hostName}" = {
|
||||
type = "disk";
|
||||
device = "/dev/sda";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
ESP = {
|
||||
priority = 1;
|
||||
size = "2G";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = [ "umask=0077" ];
|
||||
};
|
||||
};
|
||||
luks = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "luks";
|
||||
name = "${config.networking.hostName}-disk";
|
||||
settings.allowDiscards = true;
|
||||
passwordFile = "/tmp/secret.key";
|
||||
content = {
|
||||
type = "lvm_pv";
|
||||
vg = "${config.networking.hostName}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
lvm_vg = {
|
||||
"${config.networking.hostName}" = {
|
||||
type = "lvm_vg";
|
||||
lvs = {
|
||||
root = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = [ "-f" ];
|
||||
subvolumes = {
|
||||
"/root" = {
|
||||
mountpoint = "/";
|
||||
mountOptions = [ "compress=zstd" "noatime" "ssd" ];
|
||||
};
|
||||
"/prev" = {
|
||||
mountpoint = "/prev";
|
||||
mountOptions = [ "compress=zstd" "noatime" "ssd" "noexec" ];
|
||||
};
|
||||
"/nix" = {
|
||||
mountpoint = "/nix";
|
||||
mountOptions = [ "compress=zstd" "noatime" "ssd" ];
|
||||
};
|
||||
|
||||
# Impermanence
|
||||
"/persist" = {
|
||||
mountpoint = "/persist";
|
||||
mountOptions = [ "compress=zstd" "noatime" "ssd" ];
|
||||
};
|
||||
"/persist/.snapshots" = { };
|
||||
"/persist/home/${config.sysusers.main}" = { };
|
||||
"/persist/home/${config.sysusers.main}/.snapshots" = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
swap = {
|
||||
size = "8G";
|
||||
content = {
|
||||
type = "swap";
|
||||
discardPolicy = "both";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Needed for impermanence
|
||||
fileSystems."/persist".neededForBoot = true;
|
||||
}
|
8
hosts/intuos/filesystems/default.nix
Normal file
8
hosts/intuos/filesystems/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
fileSystems."/home/${config.sysusers.main}/Midas" = {
|
||||
device = "${config.ips.server}:/";
|
||||
fsType = "nfs4";
|
||||
options = [ "x-systemd.automount" "noauto" "soft" "_netdev" ];
|
||||
};
|
||||
}
|
12
hosts/intuos/hardware/default.nix
Normal file
12
hosts/intuos/hardware/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
1
hosts/intuos/id_ed25519.pub
Normal file
1
hosts/intuos/id_ed25519.pub
Normal file
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmBxF07N2nRylP2BpcDZTe7jb325jD+wl4t1kGlObSv bun@intuos
|
4
hosts/intuos/users/default.nix
Normal file
4
hosts/intuos/users/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./main ];
|
||||
}
|
8
hosts/intuos/users/main/default.nix
Normal file
8
hosts/intuos/users/main/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
home-manager.users."${config.sysusers.main}".home = {
|
||||
desktop.enable = true;
|
||||
production.enable = true;
|
||||
stateVersion = lib.mkForce config.system.stateVersion;
|
||||
};
|
||||
}
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
system = {
|
||||
desktop.enable = true;
|
||||
#lanzaboote.enable = true;
|
||||
fancyboot.enable = true;
|
||||
wireless.enable = true;
|
||||
wireguard.client.enable = true;
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
../../../../hosts/envy/id_ed25519.pub
|
||||
../../../../hosts/pear/id_ed25519.pub
|
||||
../../../../hosts/intuos/id_ed25519.pub
|
||||
../../../../hosts/redmond/id_ed25519.pub
|
||||
|
||||
../../../../hosts/midas/id_ed25519.pub
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue