1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-05-30 08:37:01 +02:00
This commit is contained in:
TheGeneralist 2026-03-20 17:58:21 +01:00
parent faeb9972fb
commit eac37f9535
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
4 changed files with 52 additions and 26 deletions

View file

@ -2,7 +2,12 @@
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, pkgs, inputs, ... }:
{
config,
pkgs,
inputs,
...
}:
{
imports = [ ./hardware-configuration.nix ];
@ -10,12 +15,20 @@
users.users.thegeneralist = {
isNormalUser = true;
description = "thegeneralist";
extraGroups = [ "wheel" "audio" "video" "input" "scanner" ];
shell = pkgs.nushell;
extraGroups = [
"wheel"
"audio"
"video"
"input"
"scanner"
];
shell = pkgs.zsh;
home = "/home/thegeneralist";
openssh.authorizedKeys.keys = let
openssh.authorizedKeys.keys =
let
inherit (import ../../keys.nix) thegeneralist;
in [ thegeneralist ];
in
[ thegeneralist ];
};
home-manager = {
@ -29,10 +42,12 @@
};
age.secrets.hostkey.file = ./hostkey.age;
services.openssh.hostKeys = [{
services.openssh.hostKeys = [
{
type = "ed25519";
path = config.age.secrets.hostkey.path;
}];
}
];
# Some programs
services.libinput.enable = true;
@ -52,4 +67,3 @@
system.stateVersion = "24.11";
}

View file

@ -71,12 +71,12 @@ in
if config.isDarwin then
''[ -z "$INTELLIJ_ENVIRONMENT_READER" ] && [ -z "$skip" ]''
else
''[ -z "$INTELLIJ_ENVIRONMENT_READER" ] && [ -z "$skip" ] && [ -n "$SSH_TTY" ]'';
''[ -z "$INTELLIJ_ENVIRONMENT_READER" ] && [ -z "$skip" ] && [ -z "$SSH_TTY" ]'';
in
{
home.file.".zshrc".text = # zsh
''
export PATH="$HOME/.local/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/etc/profiles/per-user/$USER/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin''${PATH:+:}''${PATH}"
export PATH="$HOME/.local/bin:/run/wrappers/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/etc/profiles/per-user/$USER/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin''${PATH:+:}''${PATH}"
source ${config'.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh
if ${nuExecCondition}; then

View file

@ -1,14 +1,14 @@
{ config, lib, pkgs, ... }: let
inherit (lib) concatStringsSep const flatten getAttr mapAttrsToList unique;
in {
users.defaultUserShell = pkgs.zsh;
# users.defaultUserShell = pkgs.zsh;
environment.sessionVariables.SHELLS = config.home-manager.users
|> mapAttrsToList (const <| getAttr "shellsByPriority")
|> flatten
|> map (drv: "${drv}${drv.shellPath}")
|> unique
|> concatStringsSep ":";
# environment.sessionVariables.SHELLS = config.home-manager.users
# |> mapAttrsToList (const <| getAttr "shellsByPriority")
# |> flatten
# |> map (drv: "${drv}${drv.shellPath}")
# |> unique
# |> concatStringsSep ":";
# environment.shellAliases = {
# ls = mkForce null;

View file

@ -70,8 +70,25 @@
enable = true;
package = pkgs.niri;
settings = {
layout = {
focus-ring = {
enable = false;
};
tab-indicator = {
enable = false;
};
border = {
enable = false;
};
# border = "off";
};
spawn-at-startup = [
{
command = [ "noctalia-shell" ];
}
];
binds = {
# Shortcuts Panel
# Shortcuts Pane
"Mod+Shift+Escape".action.show-hotkey-overlay = { };
# Application Shortcuts
@ -351,11 +368,6 @@
"pgrep -x hyprpicker >/dev/null || hyprpicker"
];
};
spawn-at-startup = [
{
command = [ "noctalia-shell" ];
}
];
};
};
}