mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
- Delete configs/bash.nix (identical to niphas, was dead code) - Delete configs/direnv.nix (dead code, niphas provides direnv) - Delete packages/vimv.nix (identical to niphas) - Remove vimv from overlay and packages output - Alias niveum-terminal/browser/filemanager to niphas equivalents - Remove 17 duplicate packages from configs/packages.nix - Remove nil from configs/editor.nix (niphas provides it) - Remove dead dmenu packageOverride from configs/default.nix
224 lines
5.3 KiB
Nix
224 lines
5.3 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib.strings) makeBinPath;
|
|
in
|
|
{
|
|
imports = [
|
|
{
|
|
boot.supportedFilesystems = [ "ntfs" ];
|
|
}
|
|
{
|
|
nixpkgs = {
|
|
config = {
|
|
allowUnfree = true;
|
|
permittedInsecurePackages = [
|
|
];
|
|
};
|
|
};
|
|
}
|
|
{
|
|
boot.tmp.cleanOnBoot = true;
|
|
boot.loader.timeout = 1;
|
|
}
|
|
{
|
|
age.secrets = {
|
|
di-fm-key = {
|
|
file = ../secrets/di-fm-key.age;
|
|
owner = config.users.users.me.name;
|
|
group = config.users.users.me.group;
|
|
mode = "440";
|
|
};
|
|
restic = {
|
|
file = ../secrets/restic.age;
|
|
owner = config.users.users.me.name;
|
|
group = config.users.users.me.group;
|
|
mode = "400";
|
|
};
|
|
};
|
|
}
|
|
{
|
|
home-manager.users.me = {
|
|
programs.zathura = {
|
|
enable = true;
|
|
options = {
|
|
selection-clipboard = "clipboard";
|
|
# first-page-column = "1:1"; # makes side-by-side mode start on the left side
|
|
};
|
|
};
|
|
};
|
|
}
|
|
{
|
|
users.mutableUsers = false;
|
|
|
|
users.defaultUserShell = pkgs.zsh;
|
|
|
|
users.users.me = {
|
|
name = "kfm";
|
|
description = pkgs.lib.niveum.kieran.name;
|
|
hashedPasswordFile = config.age.secrets.kfm-password.path;
|
|
isNormalUser = true;
|
|
uid = 1000;
|
|
extraGroups = [
|
|
"pipewire"
|
|
"audio"
|
|
];
|
|
};
|
|
|
|
nix.settings.trusted-users = [ config.users.users.me.name ];
|
|
|
|
age.secrets = {
|
|
kfm-password.file = ../secrets/kfm-password.age;
|
|
};
|
|
|
|
home-manager.users.me.xdg.enable = true;
|
|
}
|
|
{
|
|
environment.interactiveShellInit = "export PATH=$PATH";
|
|
environment.shellAliases =
|
|
let
|
|
swallow = command: "${pkgs.swallow}/bin/swallow ${command}";
|
|
in
|
|
{
|
|
sxiv = swallow "${pkgs.nsxiv}/bin/nsxiv";
|
|
zathura = swallow "${pkgs.zathura}/bin/zathura";
|
|
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 mp3 --audio-quality 0 -xic"; # Download with audio
|
|
};
|
|
}
|
|
{
|
|
i18n = {
|
|
defaultLocale = "en_DK.UTF-8";
|
|
supportedLocales = [ "all" ];
|
|
};
|
|
}
|
|
{
|
|
services.power-profiles-daemon.enable = true;
|
|
}
|
|
{
|
|
programs.gnupg = {
|
|
agent = {
|
|
enable = true;
|
|
pinentryPackage = pkgs.pinentry-qt;
|
|
settings =
|
|
let
|
|
defaultCacheTtl = 2 * 60 * 60;
|
|
in
|
|
{
|
|
default-cache-ttl = defaultCacheTtl;
|
|
max-cache-ttl = 4 * defaultCacheTtl;
|
|
};
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = [
|
|
pkgs.gnupg
|
|
(pkgs.pass.withExtensions (e: [
|
|
e.pass-otp
|
|
e.pass-import
|
|
e.pass-genphrase
|
|
]))
|
|
];
|
|
}
|
|
{
|
|
services.atd.enable = true;
|
|
}
|
|
{
|
|
services.getty = {
|
|
greetingLine = lib.mkForce "As-salamu alaykum wa rahmatullahi wa barakatuh!";
|
|
helpLine = lib.mkForce "";
|
|
};
|
|
}
|
|
{
|
|
networking.hosts = lib.mapAttrs' (name: address: {
|
|
name = address;
|
|
value = [ "${name}.local" ];
|
|
}) pkgs.lib.niveum.localAddresses;
|
|
}
|
|
{
|
|
home-manager.users.me.home.stateVersion = "22.05";
|
|
home-manager.backupFileExtension = "bak";
|
|
}
|
|
{
|
|
programs.dconf.enable = true;
|
|
home-manager.users.me = {
|
|
dconf.enable = true;
|
|
dconf.settings = {
|
|
# Change the default terminal for Nemo
|
|
"org/cinnamon/desktop/applications/terminal".exec = lib.getExe pkgs.niveum-terminal;
|
|
};
|
|
};
|
|
}
|
|
./android.nix
|
|
./stylix.nix
|
|
./alacritty.nix
|
|
./backup.nix
|
|
./bluetooth.nix
|
|
./aerc.nix
|
|
./khal.nix
|
|
./browser.nix
|
|
./clipboard.nix
|
|
./cloud.nix
|
|
./fonts.nix
|
|
./hledger.nix
|
|
./htop.nix
|
|
./lix.nix
|
|
./uni.nix
|
|
# ./i3.nix
|
|
./graphical
|
|
./keyboard
|
|
./kdeconnect.nix
|
|
{ services.upower.enable = true; }
|
|
./lb.nix
|
|
./mpv.nix
|
|
./mime.nix
|
|
./editor.nix
|
|
./flameshot.nix
|
|
./packages.nix
|
|
./virtualization.nix
|
|
./stardict.nix
|
|
./polkit.nix
|
|
./printing.nix
|
|
./redshift.nix
|
|
./rofi.nix
|
|
./ssh.nix
|
|
./sound.nix
|
|
./sudo.nix
|
|
./unclutter.nix
|
|
./vscode.nix
|
|
./wallpaper.nix
|
|
{
|
|
home-manager.users.me.home.file.".zshrc".text = ''
|
|
# nothing to see here
|
|
'';
|
|
}
|
|
{
|
|
programs.zsh.interactiveShellInit = ''
|
|
hash -d nixos=/etc/nixos niveum=${config.users.users.me.home}/sync/src/niveum
|
|
'';
|
|
|
|
home-manager.users.me = {
|
|
xdg.userDirs =
|
|
let
|
|
pictures = "${config.users.users.me.home}/cloud/nextcloud/Bilder";
|
|
in
|
|
{
|
|
enable = true;
|
|
documents = "${config.users.users.me.home}/cloud/nextcloud/Documents";
|
|
desktop = "/tmp";
|
|
download = "${config.users.users.me.home}/sync/Downloads";
|
|
music = "${config.users.users.me.home}/mobile/audio";
|
|
publicShare = "${config.users.users.me.home}/cloud/nextcloud/tmp";
|
|
videos = pictures;
|
|
pictures = pictures;
|
|
};
|
|
};
|
|
}
|
|
];
|
|
}
|