feat: Hyprland läuft jetzt und git hoffentlich auch

This commit is contained in:
Rhea 2024-10-13 20:01:55 +02:00
parent b6ef957aca
commit 467a13922d
7 changed files with 63 additions and 25 deletions

View file

@ -19,6 +19,8 @@
modules = [ modules = [
./modules/configuration.nix ./modules/configuration.nix
./modules/hardware-configuration.nix ./modules/hardware-configuration.nix
./modules/shell.nix
./modules/wayland.nix
./home ./home
# ./modules/hyprland.nix # ./modules/hyprland.nix
]; ];

View file

@ -3,13 +3,32 @@
imports = [ imports = [
# <home-manager/nixos> # <home-manager/nixos>
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
./hyprland.nix
]; ];
home-manager.users.rhea = { home-manager = {
/* The home.stateVersion option does not have a default and must be set */ useUserPackages = true;
home.stateVersion = "18.09"; useGlobalPkgs = true;
/* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */ users.rhea = {
# inherit ./hyprland.nix; /* The home.stateVersion option does not have a default and must be set */
home.stateVersion = "24.05";
/* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */
# inherit ./hyprland.nix;
home.username = "rhea";
home.homeDirectory = "/home/rhea";
programs.home-manager.enable = true;
imports = [
./hyprland.nix
];
};
}; };
users.users.rhea = {
isNormalUser = true;
description = "Rhea";
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.zsh;
};
nix.settings.allowed-users = [ "rhea" ];
} }

7
home/git.nix Normal file
View file

@ -0,0 +1,7 @@
{
programs.git = {
enable = true;
userName = "EinEtwas";
userEmail = "ein@etwas.me";
};
}

View file

@ -1,9 +1,4 @@
{ lib, inputs, pkgs, ... }: { { lib, inputs, pkgs, ... }: {
imports = [
# <home-manager/nixos>
inputs.home-manager.nixosModules.home-manager
];
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
#package = pkgs.hyprland-patched; #package = pkgs.hyprland-patched;
@ -16,15 +11,15 @@
monitor = ",highres,auto,auto"; monitor = ",highres,auto,auto";
input = { input = {
kb_layout = "us"; kb_layout = "de";
kb_variant = ""; kb_variant = "neo_qwertz";
kb_model = ""; kb_model = "";
kb_options = ""; kb_options = "";
kb_rules = ""; kb_rules = "";
follow_mouse = 1; follow_mouse = 1;
touchpad = { touchpad = {
natural_scroll = true; natural_scroll = false;
disable_while_typing = false; disable_while_typing = false;
}; };
@ -71,7 +66,7 @@
master = { master = {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
# new_is_master = true; new_status = "master";
}; };
misc = { misc = {
@ -93,7 +88,7 @@
gestures = { gestures = {
# See https://wiki.hyprland.org/Configuring/Variables/ for more # See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = true; workspace_swipe = true;
workspace_swipe_fingers = 4; workspace_swipe_fingers = 3;
}; };
windowrulev2 = [ windowrulev2 = [
@ -109,7 +104,7 @@
bind = let bind = let
#wlogout = lib.getExe pkgs.wlogout; #wlogout = lib.getExe pkgs.wlogout;
#wofi = lib.getExe pkgs.wofi; #wofi = lib.getExe pkgs.wofi;
#alacritty = lib.getExe pkgs.alacritty; alacritty = lib.getExe pkgs.alacritty;
#firefox = lib.getExe pkgs.firefox; #firefox = lib.getExe pkgs.firefox;
#thunar = lib.getExe pkgs.xfce.thunar; #thunar = lib.getExe pkgs.xfce.thunar;
#grimblast = lib.getExe inputs.hyprwm-contrib.packages.${pkgs.system}.grimblast; #grimblast = lib.getExe inputs.hyprwm-contrib.packages.${pkgs.system}.grimblast;
@ -117,7 +112,7 @@
in in
[ [
"$mod,M,exit," "$mod,M,exit,"
#"$mod,Return,exec,${alacritty}" "$mod,Return,exec,${alacritty}"
"$mod,Q,killactive," "$mod,Q,killactive,"
#"$mod SHIFT,W,exec,${firefox}" #"$mod SHIFT,W,exec,${firefox}"
#"$mod,E,exec,${thunar}" #"$mod,E,exec,${thunar}"

View file

@ -51,12 +51,12 @@
services.fprintd.enable = true; services.fprintd.enable = true;
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.rhea = { #users.users.rhea = {
isNormalUser = true; # isNormalUser = true;
description = "Rhea"; # description = "Rhea";
extraGroups = [ "networkmanager" "wheel" ]; # extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [ wayland ]; # packages = with pkgs; [ ];
}; #};
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@ -70,7 +70,6 @@
kitty kitty
chromium chromium
#home-manager #home-manager
wayland
]; ];
# Enable Flakes # Enable Flakes

5
modules/shell.nix Normal file
View file

@ -0,0 +1,5 @@
{
programs.zsh.enable = true;
programs.zsh.ohMyZsh.enable = true;
programs.zsh.ohMyZsh.theme = "agnoster";
}

11
modules/wayland.nix Normal file
View file

@ -0,0 +1,11 @@
{ inputs, pkgs, ... }: {
programs.hyprland.enable = true;
xdg.portal = {
enable = true;
wlr.enable = true;
xdgOpenUsePortal = true;
extraPortals = [
pkgs.xdg-desktop-portal-hyprland
];
};
}