mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
add hosts/tosh
This commit is contained in:
parent
144d0f94dd
commit
4c36b4a8f8
2 changed files with 32 additions and 0 deletions
27
hosts/tosh/configuration.nix
Normal file
27
hosts/tosh/configuration.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.tlp.enable = true;
|
||||||
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
networking.search = [ "bck.me" ];
|
||||||
|
|
||||||
|
sconfig = {
|
||||||
|
profile = "desktop";
|
||||||
|
gnome = true;
|
||||||
|
security-tools = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
loader.grub.enable = true;
|
||||||
|
loader.grub.device = "/dev/disk/by-id/wwn-0x50000391e71024d6";
|
||||||
|
initrd.luks.devices.cryptroot = { device = "/dev/disk/by-id/wwn-0x50000391e71024d6-part2"; };
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
|
"/" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=/os" "compress=zstd" ]; };
|
||||||
|
"/home" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=/home" "compress=zstd" ]; };
|
||||||
|
"/boot" = { device = "/dev/disk/by-id/wwn-0x50000391e71024d6-part1"; fsType = "ext4"; };
|
||||||
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "21.05";
|
||||||
|
}
|
5
hosts/tosh/default.nix
Normal file
5
hosts/tosh/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
pkgs = "unstable";
|
||||||
|
system = "x86_64-linux";
|
||||||
|
hardware = "physical";
|
||||||
|
}
|
Loading…
Reference in a new issue