machines/party: init

This commit is contained in:
Simon Bruder 2021-12-28 10:24:25 +01:00
parent a55eb9ba33
commit c953b128b7
No known key found for this signature in database
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 82 additions and 0 deletions

View file

@ -13,4 +13,11 @@ in
"${inputs.nixpkgs-asterisk}/nixos/modules/services/networking/asterisk.nix"
];
};
party = {
system = "x86_64-linux";
extraModules = [
hardware.common-cpu-intel
hardware.common-pc-ssd
];
};
}

View file

@ -0,0 +1,36 @@
{ pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
console.keyMap = "de";
services.xserver.layout = "de";
services.xserver.enable = true;
services.xserver.desktopManager.gnome.enable = true;
services.xserver.displayManager.gdm.enable = true;
security.sudo.wheelNeedsPassword = false;
users.users.party = {
isNormalUser = true;
password = "foobar";
extraGroups = [ "wheel" ];
};
environment.systemPackages = with pkgs; [
firefox
mpv
pavucontrol
];
networking.firewall.enable = false;
services.openssh.enable = true;
networking.hostName = "party";
system.stateVersion = "21.11";
}

View file

@ -0,0 +1,39 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
kernelModules = [ "kvm-intel" ];
initrd = {
availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"usb_storage"
"usbhid"
"sd_mod"
];
};
loader.grub = {
enable = true;
device = "/dev/sda";
};
};
fileSystems = {
"/" = {
device = "/dev/sda3";
fsType = "btrfs";
options = [ "discard=async" "noatime" "compress=zstd" ];
};
"/boot" = {
device = "/dev/sda2";
fsType = "ext2";
};
};
}