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/configuration.nix
./modules/hardware-configuration.nix
./modules/shell.nix
./modules/wayland.nix
./home
# ./modules/hyprland.nix
];

View file

@ -3,13 +3,32 @@
imports = [
# <home-manager/nixos>
inputs.home-manager.nixosModules.home-manager
./hyprland.nix
];
home-manager.users.rhea = {
/* The home.stateVersion option does not have a default and must be set */
home.stateVersion = "18.09";
/* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */
# inherit ./hyprland.nix;
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
users.rhea = {
/* 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, ... }: {
imports = [
# <home-manager/nixos>
inputs.home-manager.nixosModules.home-manager
];
wayland.windowManager.hyprland = {
enable = true;
#package = pkgs.hyprland-patched;
@ -16,15 +11,15 @@
monitor = ",highres,auto,auto";
input = {
kb_layout = "us";
kb_variant = "";
kb_layout = "de";
kb_variant = "neo_qwertz";
kb_model = "";
kb_options = "";
kb_rules = "";
follow_mouse = 1;
touchpad = {
natural_scroll = true;
natural_scroll = false;
disable_while_typing = false;
};
@ -71,7 +66,7 @@
master = {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
# new_is_master = true;
new_status = "master";
};
misc = {
@ -93,7 +88,7 @@
gestures = {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = true;
workspace_swipe_fingers = 4;
workspace_swipe_fingers = 3;
};
windowrulev2 = [
@ -109,7 +104,7 @@
bind = let
#wlogout = lib.getExe pkgs.wlogout;
#wofi = lib.getExe pkgs.wofi;
#alacritty = lib.getExe pkgs.alacritty;
alacritty = lib.getExe pkgs.alacritty;
#firefox = lib.getExe pkgs.firefox;
#thunar = lib.getExe pkgs.xfce.thunar;
#grimblast = lib.getExe inputs.hyprwm-contrib.packages.${pkgs.system}.grimblast;
@ -117,7 +112,7 @@
in
[
"$mod,M,exit,"
#"$mod,Return,exec,${alacritty}"
"$mod,Return,exec,${alacritty}"
"$mod,Q,killactive,"
#"$mod SHIFT,W,exec,${firefox}"
#"$mod,E,exec,${thunar}"

View file

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