split manwe config in preperation for new system
This commit is contained in:
parent
6be4f41519
commit
091438d802
8 changed files with 149 additions and 39 deletions
4
hosts/mandos/README.md
Normal file
4
hosts/mandos/README.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Description
|
||||||
|
|
||||||
|
My desktop, reasoning for the name being the following chain of thought:
|
||||||
|
**Mandos -> brother of manwe -> manwe used to be main pc, now mandos is**
|
33
hosts/mandos/default.nix
Normal file
33
hosts/mandos/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
fileSystems = {
|
||||||
|
"/home/chris/media" = {
|
||||||
|
device = "ulmo:/";
|
||||||
|
fsType = "nfs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [ pkgs.ventoy-full-qt ];
|
||||||
|
permittedInsecurePackages = [ "ventoy-qt5-1.1.05"];
|
||||||
|
boot.supportedFilesystems = [ "nfs" ];
|
||||||
|
|
||||||
|
modules = {
|
||||||
|
boot = {
|
||||||
|
silentBoot = true;
|
||||||
|
animatedBoot = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
system.audio.enable = true;
|
||||||
|
|
||||||
|
root = {
|
||||||
|
user = {
|
||||||
|
full_name = "__ROOT__";
|
||||||
|
email = "__ROOT__@${config.networking.hostName}";
|
||||||
|
};
|
||||||
|
|
||||||
|
shell = {
|
||||||
|
default = "zsh";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
35
hosts/mandos/hardware.nix
Normal file
35
hosts/mandos/hardware.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib.modules) mkDefault;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
|
"/" ={
|
||||||
|
device = "/dev/disk/by-uuid/8c4eaf57-fdb2-4c4c-bcc0-74e85a1c7985";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
"/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/C842-316A";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{ device = "/dev/disk/by-uuid/0ddf001a-5679-482e-b254-04a1b9094794"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
|
initrd.kernelModules = [ ];
|
||||||
|
kernelModules = [ "kvm-amd" ];
|
||||||
|
kernelParams = [];
|
||||||
|
extraModulePackages = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
65
hosts/mandos/users/chris/default.nix
Normal file
65
hosts/mandos/users/chris/default.nix
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
user = {
|
||||||
|
full_name = "Chris Kruining";
|
||||||
|
email = "chris@kruining.eu";
|
||||||
|
is_trusted = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
themes = {
|
||||||
|
enable = true;
|
||||||
|
theme = "everforest";
|
||||||
|
polarity = "dark";
|
||||||
|
};
|
||||||
|
|
||||||
|
develop = {
|
||||||
|
rust.enable = true;
|
||||||
|
js.enable = true;
|
||||||
|
dotnet.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
desktop = {
|
||||||
|
plasma = {
|
||||||
|
enable = true;
|
||||||
|
autoLogin = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
applications = {
|
||||||
|
communication.enable = true;
|
||||||
|
email.enable = true;
|
||||||
|
office.enable = true;
|
||||||
|
steam.enable = true;
|
||||||
|
recording.enable = true;
|
||||||
|
studio.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
terminal = {
|
||||||
|
default = "ghostty";
|
||||||
|
alacritty.enable = true;
|
||||||
|
ghostty.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
editors = {
|
||||||
|
default = "zed";
|
||||||
|
vscodium.enable = true;
|
||||||
|
zed.enable = true;
|
||||||
|
nvim.enable = true;
|
||||||
|
nano.enable = true;
|
||||||
|
kate.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
browsers = {
|
||||||
|
default = "chromium";
|
||||||
|
chrome.enable = true;
|
||||||
|
ladybird.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
games = {
|
||||||
|
minecraft.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
shell = {
|
||||||
|
default = "zsh";
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,4 +1,3 @@
|
||||||
# Description
|
# Description
|
||||||
|
|
||||||
My desktop, reasoning for the name being the following chain of thought:
|
My steambox.
|
||||||
**Manwe -> the king of the valar -> leader -> desktop is main machine**
|
|
||||||
|
|
|
@ -11,17 +11,7 @@
|
||||||
fsType = "ntfs-3g";
|
fsType = "ntfs-3g";
|
||||||
options = [ "rw" "uid=chris" ];
|
options = [ "rw" "uid=chris" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
"/home/chris/media" = {
|
|
||||||
device = "ulmo:/";
|
|
||||||
fsType = "nfs";
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.ventoy-full-qt ];
|
|
||||||
permittedInsecurePackages = [ "ventoy-qt5-1.1.05"];
|
|
||||||
|
|
||||||
boot.supportedFilesystems = [ "nfs" ];
|
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
boot = {
|
boot = {
|
||||||
|
@ -29,6 +19,8 @@
|
||||||
animatedBoot = true;
|
animatedBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
desktop.gaming.enable = true;
|
||||||
|
|
||||||
system.audio.enable = true;
|
system.audio.enable = true;
|
||||||
|
|
||||||
root = {
|
root = {
|
||||||
|
|
|
@ -5,16 +5,18 @@ in
|
||||||
{
|
{
|
||||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems = {
|
||||||
{ device = "/dev/disk/by-uuid/8c4eaf57-fdb2-4c4c-bcc0-74e85a1c7985";
|
"/" ={
|
||||||
|
device = "/dev/disk/by-uuid/8c4eaf57-fdb2-4c4c-bcc0-74e85a1c7985";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
"/boot" = {
|
||||||
device = "/dev/disk/by-uuid/C842-316A";
|
device = "/dev/disk/by-uuid/C842-316A";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{ device = "/dev/disk/by-uuid/0ddf001a-5679-482e-b254-04a1b9094794"; }
|
{ device = "/dev/disk/by-uuid/0ddf001a-5679-482e-b254-04a1b9094794"; }
|
||||||
|
|
|
@ -12,12 +12,6 @@
|
||||||
polarity = "dark";
|
polarity = "dark";
|
||||||
};
|
};
|
||||||
|
|
||||||
develop = {
|
|
||||||
rust.enable = true;
|
|
||||||
js.enable = true;
|
|
||||||
dotnet.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
desktop = {
|
desktop = {
|
||||||
plasma = {
|
plasma = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -25,27 +19,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
applications = {
|
applications = {
|
||||||
communication.enable = true;
|
|
||||||
email.enable = true;
|
|
||||||
office.enable = true;
|
|
||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
recording.enable = true;
|
|
||||||
studio.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
terminal = {
|
terminal = {
|
||||||
default = "ghostty";
|
default = "ghostty";
|
||||||
alacritty.enable = true;
|
|
||||||
ghostty.enable = true;
|
ghostty.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
editors = {
|
editors = {
|
||||||
default = "zed";
|
default = "nano";
|
||||||
vscodium.enable = true;
|
|
||||||
zed.enable = true;
|
|
||||||
nvim.enable = true;
|
|
||||||
nano.enable = true;
|
nano.enable = true;
|
||||||
kate.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
browsers = {
|
browsers = {
|
||||||
|
@ -53,10 +37,6 @@
|
||||||
chrome.enable = true;
|
chrome.enable = true;
|
||||||
ladybird.enable = true;
|
ladybird.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
games = {
|
|
||||||
minecraft.enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
shell = {
|
shell = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue