diff --git a/#configuration.nix# b/#configuration.nix# new file mode 100755 index 0000000..ca506ac --- /dev/null +++ b/#configuration.nix# @@ -0,0 +1,107 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + boot.loader.efi.canTouchEfiVariables = true; + boot.loader.limine = { + enable = true; + extraEntries = lib.mkIf (config.networking.hostName == "nerv") '' + /Windows 11 + protocol: efi + path: uuid(6E25-7E8D):/EFI/Microsoft/Boot/bootmgfw.efi + ''; + }; + boot.kernelPackages = pkgs.linuxPackages_latest; + 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"; + }; + security = { + rtkit.enable = true; + polkit.enable = true; # polkit + polkit.enablePkexecWrapper = true; + }; + users.users."lucy" = { + isNormalUser = true; + description = "lucy"; + shell = pkgs.zsh; + extraGroups = [ + "networkmanager" + "wheel" + ]; + packages = with pkgs; [ + stow + ufetch + rbw + clang + clang-tools + gnumake + emacs-pgtk + tinty + foot + pinentry-gnome3 + git + nixd + nixfmt + xournalpp + btop + chromium + fuzzel + quickshell + kdePackages.qtdeclarative + jq + wl-clipboard + adw-gtk3 + papirus-icon-theme + apple-cursor + polkit_gnome + xwayland-satellite + nautilus + libwacom + xf86-input-wacom + gdb + + ]; + }; + fonts.packages = with pkgs; [ + jetbrains-mono + nerd-fonts.jetbrains-mono + noto-fonts + noto-fonts-cjk-sans + noto-fonts-color-emoji + inter + ]; + nixpkgs.config.allowUnfree = true; + nixpkgs.overlays = [ + (final: prev: { + inherit (prev.lixPackageSets.stable) + nixpkgs-review + nix-eval-jobs + nix-fast-build + colmena + ; + }) + ]; + + nix.package = pkgs.lixPackageSets.stable.lix; + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; + system.stateVersion = "26.05"; # Did you read the comment? + +} diff --git a/configuration.nix b/configuration.nix index 48c6fa0..5ea51d0 100755 --- a/configuration.nix +++ b/configuration.nix @@ -75,6 +75,7 @@ xf86-input-wacom libreoffice-stable gdb + devenv ]; }; fonts.packages = with pkgs; [ diff --git a/modules/programs/default.nix b/modules/programs/default.nix index bcfd629..79703d1 100644 --- a/modules/programs/default.nix +++ b/modules/programs/default.nix @@ -1,6 +1,7 @@ { config, pkgs, ... }: { programs.niri.enable = true; programs.steam.enable = true; + programs.direnv.enable = true; imports = [ ./zsh.nix ./nixcord.nix diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index d47f941..e518e33 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -8,7 +8,10 @@ enable = true; theme = "gentoo"; }; - shellInit = ''export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/rbw/ssh-agent-socket"''; + shellInit = '' + export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/rbw/ssh-agent-socket" + eval "$(devenv hook zsh)" + ''; }; system.userActivationScripts.zshrc = "touch .zshrc"; }