restructuring
This commit is contained in:
parent
bd6c9e6d7e
commit
31b1b98809
15 changed files with 260 additions and 233 deletions
167
configuration/main/configuration.nix
Normal file
167
configuration/main/configuration.nix
Normal file
|
|
@ -0,0 +1,167 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./verbatim.nix
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
nushell
|
||||
wl-clipboard
|
||||
gvfs
|
||||
libsForQt5.qt5.qtquickcontrols2
|
||||
libsForQt5.qt5.qtgraphicaleffects
|
||||
];
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
|
||||
xdg = {
|
||||
mime.enable = true;
|
||||
menus.enable = true;
|
||||
|
||||
portal = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
firefox.enable = true;
|
||||
bash.blesh.enable = true;
|
||||
xfconf.enable = true;
|
||||
thunar = {
|
||||
enable = true;
|
||||
plugins = with pkgs.xfce; [
|
||||
thunar-archive-plugin
|
||||
thunar-volman
|
||||
];
|
||||
};
|
||||
|
||||
hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
package = inputs.hyprland.packages."x86_64-linux".hyprland;
|
||||
portalPackage = inputs.hyprland.packages."x86_64-linux".xdg-desktop-portal-hyprland;
|
||||
};
|
||||
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
};
|
||||
|
||||
nix-ld = {
|
||||
enable = true;
|
||||
libraries = with pkgs; [
|
||||
# Add libraries here
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
#kernelPackages = pkgs.linuxPackages_latest;
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "max-main";
|
||||
proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
networkmanager.enable = true;
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [8000];
|
||||
};
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
XDG_CURRENT_DESKTOP = "Hyprland";
|
||||
TERMINAL = "foot";
|
||||
};
|
||||
|
||||
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";
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
videoDrivers = ["amdgpu"];
|
||||
xkb = {
|
||||
layout = "cz";
|
||||
variant = "";
|
||||
options = "caps:escape";
|
||||
};
|
||||
};
|
||||
|
||||
tumbler.enable = true;
|
||||
printing.enable = true;
|
||||
|
||||
displayManager.sddm = {
|
||||
enable = true;
|
||||
theme = "${import ./sddm-theme.nix {inherit pkgs;}}";
|
||||
autoNumlock = true;
|
||||
};
|
||||
|
||||
devmon.enable = true;
|
||||
gvfs.enable = true;
|
||||
|
||||
pipewire = {
|
||||
enable = true;
|
||||
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
console.keyMap = "cz-lat2";
|
||||
security.rtkit.enable = true;
|
||||
|
||||
users.users.maxag = {
|
||||
isNormalUser = true;
|
||||
description = "Max Ag";
|
||||
extraGroups = ["networkmanager" "wheel" "video"];
|
||||
|
||||
shell = pkgs.nushell;
|
||||
};
|
||||
|
||||
system = {
|
||||
stateVersion = "25.11";
|
||||
activationScripts.cleanBackups = ''
|
||||
echo "Removing .backup_nix files..."
|
||||
find /home/maxag -type f -name "*.backup_nix" -delete
|
||||
'';
|
||||
};
|
||||
}
|
||||
44
configuration/main/hardware-configuration.nix
Normal file
44
configuration/main/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# 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 = ["nvme" "xhci_pci" "ahci" "usbhid"];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.kernelModules = ["kvm-amd"];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/7f27e3b6-f596-46e5-9f0a-327e69cf6d0c";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/4E35-A092";
|
||||
fsType = "vfat";
|
||||
options = ["fmask=0077" "dmask=0077"];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{device = "/dev/disk/by-uuid/17ca30d8-92c8-405b-9835-407eb82062a2";}
|
||||
];
|
||||
|
||||
# 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
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
15
configuration/main/sddm-theme.nix
Normal file
15
configuration/main/sddm-theme.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{pkgs}:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "sddm-theme";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "MarianArlt";
|
||||
repo = "sddm-sugar-dark";
|
||||
rev = "ceb2c455663429be03ba62d9f898c571650ef7fe";
|
||||
sha256 = "0153z1kylbhc9d12nxy9vpn0spxgrhgy36wy37pk6ysq7akaqlvy";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -R ./* $out/
|
||||
'';
|
||||
}
|
||||
7
configuration/main/verbatim.nix
Normal file
7
configuration/main/verbatim.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
fileSystems."/mnt/removable" = {
|
||||
device = "/dev/disk/by-uuid/79a440dd-15c2-4698-a0b4-2064bae0f0c6";
|
||||
fsType = "ext4";
|
||||
options = ["nofail" "user" "rw" "exec"];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue