system/greetd,users/rin: split into xorg and wayland
This commit is contained in:
parent
11847ae180
commit
0df212398f
6 changed files with 75 additions and 2 deletions
|
|
@ -32,7 +32,7 @@
|
||||||
./kernel.nix
|
./kernel.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
|
|
||||||
../../users/rin
|
../../users/rin/wayland.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.hyprland.enable = true;
|
programs.hyprland.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
./kernel.nix
|
./kernel.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
|
|
||||||
../../users/rin
|
../../users/rin/xorg.nix
|
||||||
];
|
];
|
||||||
services.postgresql.ensureDatabases = [ "barista" "barista-dev" ];
|
services.postgresql.ensureDatabases = [ "barista" "barista-dev" ];
|
||||||
programs.hyprland.enable = true;
|
programs.hyprland.enable = true;
|
||||||
|
|
|
||||||
16
modules/system/greetd_xorg.nix
Normal file
16
modules/system/greetd_xorg.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
{ pkgs, lib, ... }: {
|
||||||
|
services.greetd = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
default_session = {
|
||||||
|
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --remember --asterisks --time --cmd 'zsh -c \"source $HOME/.config/zsh/.zshrc && startx\"'";
|
||||||
|
user = "greeter";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver = {
|
||||||
|
autorun = false;
|
||||||
|
displayManager.startx.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
57
users/rin/xorg.nix
Normal file
57
users/rin/xorg.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
||||||
|
{ config, lib, modules, pkgs, ... }: {
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
users.users.rin = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [ "adbusers" "audio" "corectrl" "libvirtd" "networkmanager" "video" "wheel" ];
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
uid = 1001;
|
||||||
|
passwordFile = config.age.secrets.passwd.path;
|
||||||
|
};
|
||||||
|
home-manager.users.rin = { config, enableGUI, lib, pkgs, ... }: {
|
||||||
|
home = {
|
||||||
|
username = "rin";
|
||||||
|
homeDirectory = "/home/rin";
|
||||||
|
stateVersion = "21.05";
|
||||||
|
keyboard = null; # see https://github.com/nix-community/home-manager/issues/2219
|
||||||
|
};
|
||||||
|
|
||||||
|
imports = with modules.user; [
|
||||||
|
./packages.nix
|
||||||
|
sessionVariables
|
||||||
|
|
||||||
|
direnv
|
||||||
|
git
|
||||||
|
gpg
|
||||||
|
neovim
|
||||||
|
npm
|
||||||
|
pass
|
||||||
|
zsh
|
||||||
|
] ++ lib.optionals enableGUI [
|
||||||
|
theming
|
||||||
|
xdg
|
||||||
|
|
||||||
|
kitty
|
||||||
|
mpv
|
||||||
|
obs
|
||||||
|
rofi
|
||||||
|
|
||||||
|
picom
|
||||||
|
bspwm
|
||||||
|
sxhkd
|
||||||
|
xorg
|
||||||
|
dunst
|
||||||
|
eww
|
||||||
|
];
|
||||||
|
|
||||||
|
services.mpris-proxy.enable = true;
|
||||||
|
|
||||||
|
home.file.".local/bin/ipc-bridge.exe".source = builtins.fetchurl {
|
||||||
|
url = "https://github.com/0e4ef622/wine-discord-ipc-bridge/releases/download/v0.0.1/winediscordipcbridge.exe";
|
||||||
|
sha256 = "1swn9spxpq6blm74kjmfz4ipq6a8qjzccvb2msb25pf5b1z7jnns";
|
||||||
|
};
|
||||||
|
home.file.".local/bin/osu" = {
|
||||||
|
executable = true;
|
||||||
|
source = ../../scripts/osu;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue