first commit

This commit is contained in:
benstrb 2026-01-03 12:48:28 +01:00
commit 780ddcda1c
37 changed files with 981 additions and 0 deletions

View file

@ -0,0 +1,7 @@
{
fileSystems."/mnt/500G-disk" = {
device = "/dev/disk/by-uuid/1a899f03-4c6a-460a-9635-c4b208b29fba";
fsType = "ext4";
options = ["nofail" "user" "rw" "exec"];
};
}

View file

@ -0,0 +1,41 @@
{
pkgs,
inputs,
...
}: {
imports = [
./hardware-configuration.nix
./verbatim.nix
./500G-disk.nix
../modules/graphics.nix
../modules/boot.nix
../modules/networking.nix
../modules/xdg-settings.nix
../modules/window-manager.nix
../modules/sddm.nix
../modules/main-user.nix
../modules/programs.nix
../modules/ssh.nix
../modules/sound.nix
../modules/printing.nix
../modules/input-handle.nix
../modules/keyboard.nix
../modules/locale.nix
];
nix.settings.experimental-features = ["nix-command" "flakes"];
nixpkgs.config = {
allowUnfree = true;
nvidia.acceptLicense = true;
};
services.xserver.enable = true;
environment.shells = [pkgs.nushell];
home-manager.extraSpecialArgs = {inherit inputs;};
system.stateVersion = "25.11";
}

View file

@ -0,0 +1,30 @@
# 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 = [ "ata_generic" "ehci_pci" "ahci" "nvme" "usbhid" "usb_storage" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/339dddc4-c4f8-47ea-a7a9-471c77f7c89e";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/1ff36da1-f1eb-4ae0-911f-d638ad5cf5ec";
fsType = "ext4";
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -0,0 +1,7 @@
{
fileSystems."/mnt/verbatim" = {
device = "/dev/disk/by-uuid/2aa5f849-1df0-4f3a-b7db-ef64d06b16e4";
fsType = "ext4";
options = ["nofail" "user" "rw" "exec"];
};
}

View file

@ -0,0 +1,10 @@
{pkgs, ...}: {
boot = {
kernelPackages = pkgs.linuxPackages_6_6;
loader.grub = {
enable = true;
device = "/dev/disk/by-id/ata-KINGSTON_SKC300S37A60G_50026B7239039148";
};
};
}

View file

@ -0,0 +1,13 @@
{config, ...}: {
services.xserver.videoDrivers = ["nvidia"];
hardware = {
graphics.enable = true;
nvidia = {
modesetting.enable = true;
open = false;
package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
};
};
}

View file

@ -0,0 +1,3 @@
{
services.libinput.enable = true;
}

View file

@ -0,0 +1,6 @@
{
services.xserver.xkb = {
layout = "cz";
options = "caps:escape";
};
}

View file

@ -0,0 +1,19 @@
{
console.keyMap = "cz-lat2";
time.timeZone = "Europe/Prague";
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "cs_CZ.UTF-8";
LC_IDENTIFICATION = "cs_CZ.UTF-8";
LC_MEASUREMENT = "cs_CZ.UTF-8";
LC_MONETARY = "cs_CZ.UTF-8";
LC_NAME = "cs_CZ.UTF-8";
LC_NUMERIC = "cs_CZ.UTF-8";
LC_PAPER = "cs_CZ.UTF-8";
LC_TELEPHONE = "cs_CZ.UTF-8";
LC_TIME = "cs_CZ.UTF-8";
};
};
}

View file

@ -0,0 +1,8 @@
{pkgs, ...}: {
users.users.benag = {
isNormalUser = true;
extraGroups = ["wheel"];
shell = pkgs.nushell;
};
}

View file

@ -0,0 +1,6 @@
{
networking = {
hostName = "nixos";
networkmanager.enable = true;
};
}

View file

@ -0,0 +1,3 @@
{
services.printing.enable = true;
}

View file

@ -0,0 +1,8 @@
{
programs = {
firefox.enable = true;
steam.enable = true;
bash.blesh.enable = true;
nix-ld.enable = true;
};
}

View file

@ -0,0 +1,3 @@
{
services.displayManager.sddm.enable = true;
}

View file

@ -0,0 +1,13 @@
{
services = {
pipewire = {
enable = true;
pulse.enable = true;
alsa = {
enable = true;
support32Bit = true;
};
};
};
}

View file

@ -0,0 +1,3 @@
{
services.openssh.enable = true;
}

View file

@ -0,0 +1,5 @@
{
services.xserver.windowManager = {
bspwm.enable = true;
};
}

View file

@ -0,0 +1,9 @@
{pkgs, ...}: {
xdg.portal = {
enable = true;
extraPortals = [pkgs.xdg-desktop-portal-gtk];
configPackages = with pkgs; [
xdg-desktop-portal-gtk
];
};
}