first commit
This commit is contained in:
commit
780ddcda1c
37 changed files with 981 additions and 0 deletions
7
configuration/main/500G-disk.nix
Normal file
7
configuration/main/500G-disk.nix
Normal 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"];
|
||||
};
|
||||
}
|
||||
41
configuration/main/configuration.nix
Normal file
41
configuration/main/configuration.nix
Normal 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";
|
||||
}
|
||||
30
configuration/main/hardware-configuration.nix
Normal file
30
configuration/main/hardware-configuration.nix
Normal 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;
|
||||
}
|
||||
7
configuration/main/verbatim.nix
Normal file
7
configuration/main/verbatim.nix
Normal 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"];
|
||||
};
|
||||
}
|
||||
10
configuration/modules/boot.nix
Normal file
10
configuration/modules/boot.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
13
configuration/modules/graphics.nix
Normal file
13
configuration/modules/graphics.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
3
configuration/modules/input-handle.nix
Normal file
3
configuration/modules/input-handle.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.libinput.enable = true;
|
||||
}
|
||||
6
configuration/modules/keyboard.nix
Normal file
6
configuration/modules/keyboard.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
services.xserver.xkb = {
|
||||
layout = "cz";
|
||||
options = "caps:escape";
|
||||
};
|
||||
}
|
||||
19
configuration/modules/locale.nix
Normal file
19
configuration/modules/locale.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
8
configuration/modules/main-user.nix
Normal file
8
configuration/modules/main-user.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
users.users.benag = {
|
||||
isNormalUser = true;
|
||||
extraGroups = ["wheel"];
|
||||
|
||||
shell = pkgs.nushell;
|
||||
};
|
||||
}
|
||||
6
configuration/modules/networking.nix
Normal file
6
configuration/modules/networking.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
networking = {
|
||||
hostName = "nixos";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
}
|
||||
3
configuration/modules/printing.nix
Normal file
3
configuration/modules/printing.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.printing.enable = true;
|
||||
}
|
||||
8
configuration/modules/programs.nix
Normal file
8
configuration/modules/programs.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
programs = {
|
||||
firefox.enable = true;
|
||||
steam.enable = true;
|
||||
bash.blesh.enable = true;
|
||||
nix-ld.enable = true;
|
||||
};
|
||||
}
|
||||
3
configuration/modules/sddm.nix
Normal file
3
configuration/modules/sddm.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.displayManager.sddm.enable = true;
|
||||
}
|
||||
13
configuration/modules/sound.nix
Normal file
13
configuration/modules/sound.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
services = {
|
||||
pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
3
configuration/modules/ssh.nix
Normal file
3
configuration/modules/ssh.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.openssh.enable = true;
|
||||
}
|
||||
5
configuration/modules/window-manager.nix
Normal file
5
configuration/modules/window-manager.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
services.xserver.windowManager = {
|
||||
bspwm.enable = true;
|
||||
};
|
||||
}
|
||||
9
configuration/modules/xdg-settings.nix
Normal file
9
configuration/modules/xdg-settings.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{pkgs, ...}: {
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
||||
configPackages = with pkgs; [
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue