Add a profile for the office computer
This commit is contained in:
parent
39f522dc60
commit
63c4f815c5
2 changed files with 40 additions and 20 deletions
21
flake.nix
21
flake.nix
|
@ -46,26 +46,7 @@
|
|||
DerGeret = import ./profiles/machines/manuel/DerGeret/Arch/config.nix;
|
||||
ManuSurface = import ./profiles/machines/manuel/ManuSurface/Arch/config.nix;
|
||||
server = import ./profiles/machines/manuel/server.nix;
|
||||
clean = { ... }: {
|
||||
imports = [
|
||||
./lib/modules/valhalla.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
valhalla = {
|
||||
hostname = "Falcon";
|
||||
|
||||
windows = {
|
||||
users.LocalAdmin = {
|
||||
groups = [ "Administrators" ];
|
||||
programs.oh-my-posh.theme.source = ./profiles/users/manuel/manuel.omp.json;
|
||||
};
|
||||
};
|
||||
|
||||
software.essential = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
Office = import ./profiles/machines/manuel/office.nix;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
39
profiles/machines/manuel/office.nix
Normal file
39
profiles/machines/manuel/office.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ lib, ... }: {
|
||||
imports = [
|
||||
./defaults.nix
|
||||
./Generic/Arch/config.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
valhalla = {
|
||||
hostname = "falcon";
|
||||
hidpi = true;
|
||||
linux.secureBoot = true;
|
||||
|
||||
windows = {
|
||||
dualboot = {
|
||||
enable = true;
|
||||
linuxPercentage = 70;
|
||||
};
|
||||
|
||||
users.manuel = {
|
||||
groups = [ "Administrators" ];
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems.diskSetup.devices.OS.partitions = {
|
||||
# Keep Windows' boot partition
|
||||
Boot.keepExisting = true;
|
||||
|
||||
Windows = {
|
||||
index = 6;
|
||||
label = "Windows";
|
||||
format = "ntfs";
|
||||
mountPoint = "/media/win";
|
||||
mountOptions = [ "force" ];
|
||||
keepExisting = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue