summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/configuration.nix125
-rw-r--r--nixos/default.nix46
2 files changed, 46 insertions, 125 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix
deleted file mode 100644
index 7d938f7..0000000
--- a/nixos/configuration.nix
+++ /dev/null
@@ -1,125 +0,0 @@
-{ config, pkgs, ... }:
-
-{
- imports = [
- ./hardware-configuration.nix
- ];
-
- nix.settings.experimental-features = [ "nix-command" "flakes" ];
- nix.settings.auto-optimise-store = true;
-
- nix.gc = {
- automatic = true;
- dates = "weekly";
- options = "--delete-older-than 7d";
- };
-
- boot.loader.grub = {
- enable = true;
- device = "/dev/nvme0n1";
- useOSProber = true;
- };
- boot.kernelPackages = pkgs.linuxPackages_latest;
-
- zramSwap = {
- enable = true;
- memoryPercent = 25;
- };
-
- services.getty.autologinUser = "cat";
- services.fstrim.enable = true;
-
- networking.hostName = "box";
- networking.networkmanager.enable = true;
-
- time.timeZone = "Europe/Berlin";
- i18n.defaultLocale = "en_US.UTF-8";
- i18n.extraLocaleSettings = {
- LC_ADDRESS = "de_DE.UTF-8";
- LC_IDENTIFICATION = "de_DE.UTF-8";
- LC_MEASUREMENT = "de_DE.UTF-8";
- LC_MONETARY = "de_DE.UTF-8";
- LC_NAME = "de_DE.UTF-8";
- LC_NUMERIC = "de_DE.UTF-8";
- LC_PAPER = "de_DE.UTF-8";
- LC_TELEPHONE = "de_DE.UTF-8";
- LC_TIME = "de_DE.UTF-8";
- };
-
- nixpkgs.config.allowUnfree = true;
-
- hardware.graphics = {
- enable = true;
- enable32Bit = true;
- };
-
- services.xserver.videoDrivers = [ "nvidia" ];
- hardware.nvidia = {
- modesetting.enable = true;
- powerManagement.enable = false;
- nvidiaSettings = true;
- open = true;
- package = config.boot.kernelPackages.nvidiaPackages.stable;
- };
-
- security.rtkit.enable = true;
- services.pipewire = {
- enable = true;
- alsa.enable = true;
- alsa.support32Bit = true;
- pulse.enable = true;
- jack.enable = true;
- };
-
- programs.hyprland.enable = true;
- programs.fish.enable = true;
- programs.dconf.enable = true;
- programs.steam.enable = true;
-
- xdg.portal = {
- enable = true;
- extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
- };
-
- users.users.cat = {
- isNormalUser = true;
- description = "cat";
- extraGroups = [ "networkmanager" "wheel" ];
- shell = pkgs.fish;
- };
-
-environment.systemPackages = with pkgs; [
- btop
- git
- kitty
- wl-clipboard
- neovim
- awww
- libnotify
- pywal
- quickshell
- grim
- slurp
- kdePackages.dolphin
- imv
- mpv
- obs-studio
- prismlauncher
- obsidian
- ];
-
- fonts.packages = with pkgs; [
- corefonts
- noto-fonts
- noto-fonts-cjk-sans
- google-fonts
- nerd-fonts.jetbrains-mono
- noto-fonts-color-emoji
- twemoji-color-font
- ];
-
-documentation.enable = false;
-documentation.man.enable = false;
-
- system.stateVersion = "26.05";
-}
diff --git a/nixos/default.nix b/nixos/default.nix
new file mode 100644
index 0000000..7b439be
--- /dev/null
+++ b/nixos/default.nix
@@ -0,0 +1,46 @@
+{ pkgs, ... }: {
+ nix.settings.experimental-features = [ "nix-command" "flakes" ];
+ nix.settings.auto-optimise-store = true;
+
+ nix.gc = {
+ automatic = true;
+ dates = "weekly";
+ options = "--delete-older-than 7d";
+ };
+
+ boot.kernelPackages = pkgs.linuxPackages_latest;
+
+ time.timeZone = "Europe/Berlin";
+ i18n.defaultLocale = "en_US.UTF-8";
+ i18n.extraLocaleSettings = {
+ LC_ADDRESS = "de_DE.UTF-8";
+ LC_IDENTIFICATION = "de_DE.UTF-8";
+ LC_MEASUREMENT = "de_DE.UTF-8";
+ LC_MONETARY = "de_DE.UTF-8";
+ LC_NAME = "de_DE.UTF-8";
+ LC_NUMERIC = "de_DE.UTF-8";
+ LC_PAPER = "de_DE.UTF-8";
+ LC_TELEPHONE = "de_DE.UTF-8";
+ LC_TIME = "de_DE.UTF-8";
+ };
+
+ nixpkgs.config.allowUnfree = true;
+
+ programs.fish.enable = true;
+
+ users.users.cat = {
+ isNormalUser = true;
+ description = "cat";
+ extraGroups = [ "wheel" ];
+ shell = pkgs.fish;
+ };
+
+ environment.systemPackages = with pkgs; [
+ btop
+ git
+ neovim
+ ];
+
+ documentation.enable = false;
+ documentation.man.enable = false;
+}