This commit is contained in:
Martin Benonisen 2024-03-18 14:09:49 +01:00
parent d19c898833
commit 331ab11fe1
Signed by: mbeno
GPG Key ID: 025254EFB372A723
6 changed files with 22 additions and 25 deletions

View File

@ -26,13 +26,22 @@
XDG_BIN_HOME = "$HOME/.local/bin"; XDG_BIN_HOME = "$HOME/.local/bin";
PATH = [ "${XDG_BIN_HOME}" ]; PATH = [ "${XDG_BIN_HOME}" ];
}; };
xdg.portal = { xdg.portal =
{
enable = true; enable = true;
xdgOpenUsePortal = true; xdgOpenUsePortal = true;
config = {
i3 = {
default = [
"gtk"
];
};
};
extraPortals = (with pkgs; [ extraPortals = (with pkgs; [
# unstable.xdg-desktop-portal-hyprland # unstable.xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk xdg-desktop-portal-gtk
]); ]);
}; };
# Allow unfree packages # Allow unfree packages

View File

@ -1 +1 @@
{ imports = [ ./users ./services ./hardware ./fonts ./security ./programs ] } { imports = [ ./users.nix ./services.nix ./hardware.nix ./fonts.nix ./security.nix ./programs.nix ]; }

View File

@ -1,6 +1,5 @@
{ config, pkgs, ... }: { { config, pkgs, ... }: {
programs.zsh.enable = true;
programs.steam = { programs.steam = {
enable = true; enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play

View File

@ -1,6 +1,7 @@
{ config, pkgs, ... }: { { config, pkgs, ... }: {
programs.zsh.enable = true;
environment.shells = with pkgs; [ zsh ];
users.defaultUserShell = pkgs.zsh;
users.users.mbeno = { users.users.mbeno = {
shell = pkgs.zsh; shell = pkgs.zsh;
isNormalUser = true; isNormalUser = true;
@ -15,15 +16,5 @@
# thunderbird # thunderbird
]; ];
}; };
security.sudo.extraRules = [
{
users = [ "mbeno" ];
commands = [
{
command = "ALL";
options = [ "NOPASSWD" ]; # "SETENV" # Adding the following could be a good idea
}
];
}
];
} }

View File

@ -22,7 +22,6 @@
]; ];
firefox.enable = true; firefox.enable = true;
tmux.enable = true; tmux.enable = true;
hyprland.enable = true;
home = { home = {
username = "${user}"; username = "${user}";
homeDirectory = "/home/${user}"; homeDirectory = "/home/${user}";

View File

@ -16,8 +16,7 @@
# Prompt stuff # Prompt stuff
autoload -Uz promptinit autoload -Uz promptinit
promptinit promptinit
prompt pure prompt agnoster
export PATH="''${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
''; '';
zplug = { zplug = {
enable = true; enable = true;