separate into machine and user specific profiles

This commit is contained in:
atagen 2022-08-18 20:38:00 +10:00
parent 7d9fe63a4a
commit 3849967624
6 changed files with 95 additions and 49 deletions

37
system/wollomi.nix Normal file
View file

@ -0,0 +1,37 @@
{ config, pkgs, ... }:
{
networking.hostName = "wollomi"; # Define your hostname.
# dlna
services.minidlna = {
enable = true;
announceInterval = 120;
friendlyName = "PC";
mediaDirs = [ "A,/data/Music/Slsk" ];
};
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
hardware.ckb-next.enable = true;
users.users.fossil = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
};
environment.systemPackages = with pkgs; [
ckb-next
];
fileSystems."/" = {
device = "/dev/mapper/linux-nix";
fsType = "ext4";
};
fileSystems."/home" = {
device = "/dev/mapper/linux-home";
fsType = "btrfs";
};
fileSystems."/data" = {
device = "/dev/sdb1";
fsType = "ntfs";
};
networking.firewall.enable = false;
}