thinkpad-nixos: Add local configuration

This commit is contained in:
traxys 2021-12-15 10:19:47 +01:00
parent 68d928d0a8
commit 004ca7d686
2 changed files with 45 additions and 0 deletions

View file

@ -208,6 +208,7 @@
thinkpad-nixos = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules = [
./hostconfig/thinkpad-nixos/nixos.nix
self.nixosModules.minimal
self.nixosModules.personal-cli
self.nixosModules.personal-gui

View file

@ -0,0 +1,44 @@
{
boot.initrd = {
luks.devices = {
root = {
device = "/dev/disk/by-uuid/6b407da2-2256-4167-93e8-a7bb7be18112";
preLVM = true;
allowDiscards = true;
};
};
};
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
networking = {
hostName = "thinkpad-nixos";
interfaces = {
enp0s31f6.useDHCP = true;
wlp4s0.useDHCP = true;
};
};
users = {
users.traxys.uid = 1000;
users.sf-user = {
uid = 1100;
group = "sf-user";
isSystemUser = true;
};
groups.sf-user.gid = 1100;
extraGroups.vboxusers.members = ["traxys"];
};
nixpkgs.config.allowUnfree = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# 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 = "22.05"; # Did you read the comment?
}