mirror of
https://github.com/kmein/niveum
synced 2026-03-19 03:21:10 +01:00
format
This commit is contained in:
@@ -6,16 +6,18 @@
|
|||||||
unstablePackages,
|
unstablePackages,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
|
let
|
||||||
inherit (lib.strings) makeBinPath;
|
inherit (lib.strings) makeBinPath;
|
||||||
inherit (import ../lib) localAddresses kieran remoteDir;
|
inherit (import ../lib) localAddresses kieran remoteDir;
|
||||||
defaultApplications = (import ../lib).defaultApplications {inherit pkgs;};
|
defaultApplications = (import ../lib).defaultApplications { inherit pkgs; };
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.self.nixosModules.system-dependent
|
inputs.self.nixosModules.system-dependent
|
||||||
inputs.self.nixosModules.power-action
|
inputs.self.nixosModules.power-action
|
||||||
{
|
{
|
||||||
boot.supportedFilesystems = ["ntfs"];
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
@@ -74,7 +76,10 @@ in {
|
|||||||
hashedPasswordFile = config.age.secrets.kfm-password.path;
|
hashedPasswordFile = config.age.secrets.kfm-password.path;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
extraGroups = ["pipewire" "audio"];
|
extraGroups = [
|
||||||
|
"pipewire"
|
||||||
|
"audio"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.settings.trusted-users = [ config.users.users.me.name ];
|
nix.settings.trusted-users = [ config.users.users.me.name ];
|
||||||
@@ -87,25 +92,27 @@ in {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
environment.interactiveShellInit = "export PATH=$PATH";
|
environment.interactiveShellInit = "export PATH=$PATH";
|
||||||
environment.shellAliases = let
|
environment.shellAliases =
|
||||||
swallow = command: "${niveumPackages.swallow}/bin/swallow ${command}";
|
let
|
||||||
in {
|
swallow = command: "${niveumPackages.swallow}/bin/swallow ${command}";
|
||||||
o = "${pkgs.xdg-utils}/bin/xdg-open";
|
in
|
||||||
ns = "nix-shell --run zsh";
|
{
|
||||||
pbcopy = "${pkgs.xclip}/bin/xclip -selection clipboard -in";
|
o = "${pkgs.xdg-utils}/bin/xdg-open";
|
||||||
pbpaste = "${pkgs.xclip}/bin/xclip -selection clipboard -out";
|
ns = "nix-shell --run zsh";
|
||||||
tmux = "${pkgs.tmux}/bin/tmux -2";
|
pbcopy = "${pkgs.xclip}/bin/xclip -selection clipboard -in";
|
||||||
sxiv = swallow "${pkgs.nsxiv}/bin/nsxiv";
|
pbpaste = "${pkgs.xclip}/bin/xclip -selection clipboard -out";
|
||||||
zathura = swallow "${pkgs.zathura}/bin/zathura";
|
tmux = "${pkgs.tmux}/bin/tmux -2";
|
||||||
im = "${pkgs.openssh}/bin/ssh weechat@makanek -t tmux attach-session -t IM";
|
sxiv = swallow "${pkgs.nsxiv}/bin/nsxiv";
|
||||||
yt = "${pkgs.yt-dlp}/bin/yt-dlp --add-metadata -ic"; # Download video link
|
zathura = swallow "${pkgs.zathura}/bin/zathura";
|
||||||
yta = "${pkgs.yt-dlp}/bin/yt-dlp --add-metadata --audio-format opus --audio-quality 0 -xic"; # Download with audio
|
im = "${pkgs.openssh}/bin/ssh weechat@makanek -t tmux attach-session -t IM";
|
||||||
};
|
yt = "${pkgs.yt-dlp}/bin/yt-dlp --add-metadata -ic"; # Download video link
|
||||||
|
yta = "${pkgs.yt-dlp}/bin/yt-dlp --add-metadata --audio-format opus --audio-quality 0 -xic"; # Download with audio
|
||||||
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
i18n = {
|
i18n = {
|
||||||
defaultLocale = "en_DK.UTF-8";
|
defaultLocale = "en_DK.UTF-8";
|
||||||
supportedLocales = ["all"];
|
supportedLocales = [ "all" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@@ -121,12 +128,18 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
greeters.gtk = {
|
greeters.gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
indicators = ["~spacer" "~host" "~spacer" "~session" "~power"];
|
indicators = [
|
||||||
|
"~spacer"
|
||||||
|
"~host"
|
||||||
|
"~spacer"
|
||||||
|
"~session"
|
||||||
|
"~power"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{programs.command-not-found.enable = true;}
|
{ programs.command-not-found.enable = true; }
|
||||||
{
|
{
|
||||||
programs.gnupg = {
|
programs.gnupg = {
|
||||||
agent = {
|
agent = {
|
||||||
@@ -141,7 +154,11 @@ in {
|
|||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.gnupg
|
pkgs.gnupg
|
||||||
(pkgs.pass.withExtensions (e: [e.pass-otp e.pass-import e.pass-genphrase]))
|
(pkgs.pass.withExtensions (e: [
|
||||||
|
e.pass-otp
|
||||||
|
e.pass-import
|
||||||
|
e.pass-genphrase
|
||||||
|
]))
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@@ -154,12 +171,10 @@ in {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
networking.hosts =
|
networking.hosts = lib.mapAttrs' (name: address: {
|
||||||
lib.mapAttrs' (name: address: {
|
name = address;
|
||||||
name = address;
|
value = [ "${name}.local" ];
|
||||||
value = ["${name}.local"];
|
}) localAddresses;
|
||||||
})
|
|
||||||
localAddresses;
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
home-manager.users.me.home.stateVersion = "22.05";
|
home-manager.users.me.home.stateVersion = "22.05";
|
||||||
@@ -167,9 +182,9 @@ in {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
systemd.user.services.udiskie = {
|
systemd.user.services.udiskie = {
|
||||||
after = ["udisks2.service"];
|
after = [ "udisks2.service" ];
|
||||||
wants = ["udisks2.service"];
|
wants = [ "udisks2.service" ];
|
||||||
wantedBy = ["graphical-session.target"];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.udiskie}/bin/udiskie --verbose --no-config --notify";
|
ExecStart = "${pkgs.udiskie}/bin/udiskie --verbose --no-config --notify";
|
||||||
};
|
};
|
||||||
@@ -277,7 +292,7 @@ in {
|
|||||||
download = "${config.users.users.me.home}/sync/Downloads";
|
download = "${config.users.users.me.home}/sync/Downloads";
|
||||||
music = "${config.users.users.me.home}/mobile/audio";
|
music = "${config.users.users.me.home}/mobile/audio";
|
||||||
pictures = "${config.users.users.me.home}/cloud/nextcloud/Bilder";
|
pictures = "${config.users.users.me.home}/cloud/nextcloud/Bilder";
|
||||||
publicShare = "${config.users.users.me.home}/cloud/nextcloud/tmp";
|
publicShare = "${config.users.users.me.home}/cloud/nextcloud/tmp";
|
||||||
videos = pictures;
|
videos = pictures;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user