This commit is contained in:
LunarAkai 2025-03-16 19:45:20 +01:00
commit 3bfebb286d
14 changed files with 235 additions and 34 deletions

View file

@ -0,0 +1,5 @@
{
virtualisation.docker = {
enable = true;
};
}

View file

@ -2,23 +2,25 @@
pkgs,
config,
...
}: {
}: let
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
# Define a user account. Don't forget to set a password with passwd.
users.users.luna = {
isNormalUser = true;
description = "luna";
shell = pkgs.zsh;
extraGroups = [
extraGroups = ifTheyExist [
"audio"
"docker"
"networkmanager"
"wheel"
];
packages = with pkgs; [
# thunderbird
gnome-software
git
neovim
rustup
vscode.fhs
protonvpn-gui
];
};

View file

@ -17,6 +17,7 @@
../common/optional/pipewire.nix
../common/optional/flatpak.nix
../common/optional/ckb-next.nix
../common/optional/docker.nix
# Include the results of the hardware scan.
./hardware-configuration.nix
@ -67,4 +68,7 @@
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
};
nixpkgs.overlays = [
inputs.nix-vscode-extensions.overlays.default
];
}

View file

@ -1,35 +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")
];
config,
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/951f8c69-070f-4e2c-9af9-b52e43a72577";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/951f8c69-070f-4e2c-9af9-b52e43a72577";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/BF5F-3F1E";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/BF5F-3F1E";
fsType = "vfat";
options = ["fmask=0077" "dmask=0077"];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/8bf53e75-628e-4a1b-a19f-1ac55be2af35";
fsType = "ext4";
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/8bf53e75-628e-4a1b-a19f-1ac55be2af35";
fsType = "ext4";
};
swapDevices = [ ];
swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's