mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Add nucturne configuration
This commit is contained in:
parent
405b4efc36
commit
982acf1261
58
machines/nucturne/default.nix
Normal file
58
machines/nucturne/default.nix
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
{ config, pkgs, inputs, nixos-hardware, ...}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../../common/users.nix
|
||||||
|
./hardware-configuration.nix
|
||||||
|
./software.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
elss = {
|
||||||
|
# base system
|
||||||
|
base.enable = true;
|
||||||
|
# setup locale and font settings
|
||||||
|
locale.enable = true;
|
||||||
|
# setup sshd
|
||||||
|
sshd.enable = true;
|
||||||
|
# configure zsh
|
||||||
|
zsh.enable = true;
|
||||||
|
# enable X11 with lightdm and i3
|
||||||
|
graphical = {
|
||||||
|
enable = true;
|
||||||
|
# set dpi if used in mobile applications
|
||||||
|
# dpi = 180;
|
||||||
|
};
|
||||||
|
|
||||||
|
# enable deamon to generate nix-index-db
|
||||||
|
nix-index-db-update.enable = true;
|
||||||
|
|
||||||
|
# add TUD vpn
|
||||||
|
openvpn.enable = true;
|
||||||
|
|
||||||
|
# enable sops
|
||||||
|
sops = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# user setup
|
||||||
|
users = {
|
||||||
|
enable = true;
|
||||||
|
admins = [ "ellmau" ];
|
||||||
|
users = [ ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
ellmau.git = {
|
||||||
|
signDefault = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.extraModulePackages = [
|
||||||
|
config.boot.kernelPackages.v4l2loopback
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.kernelModules = [
|
||||||
|
"v4l2loopback"
|
||||||
|
];
|
||||||
|
}
|
||||||
38
machines/nucturne/hardware-configuration.nix
Normal file
38
machines/nucturne/hardware-configuration.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/da267a3c-34e3-4218-933f-10738ee61eb6";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/home" =
|
||||||
|
{ device = "/dev/disk/by-uuid/9ebd7aff-629b-449b-83d8-6381a04eb708";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/DE6D-C383";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/disk/by-uuid/0069f1fa-dd8e-4c0a-8f01-a576af29909e"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
|
# high-resolution display
|
||||||
|
hardware.video.hidpi.enable = lib.mkDefault true;
|
||||||
|
}
|
||||||
28
machines/nucturne/software.nix
Normal file
28
machines/nucturne/software.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
libreoffice-fresh
|
||||||
|
];
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
java.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
autorandr.enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
elss = {
|
||||||
|
programs = {
|
||||||
|
aspell.enable = true;
|
||||||
|
# Enable communication programs
|
||||||
|
communication.enable = true;
|
||||||
|
emacs.enable = true;
|
||||||
|
obsstudio.enable = true;
|
||||||
|
python.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
texlive.enable = true;
|
||||||
|
steam-run.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user