packages
This commit is contained in:
parent
5c51498922
commit
793095b3f0
14 changed files with 154 additions and 2 deletions
|
|
@ -19,6 +19,8 @@
|
||||||
|
|
||||||
impermanence.url = "github:nix-community/impermanence";
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
|
|
||||||
|
stylix.url = "github:danth/stylix";
|
||||||
|
|
||||||
helix.url = "github:pascalkuthe/helix/inline-diagnostics";
|
helix.url = "github:pascalkuthe/helix/inline-diagnostics";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -28,6 +30,7 @@
|
||||||
impermanence,
|
impermanence,
|
||||||
home-manager,
|
home-manager,
|
||||||
sops-nix,
|
sops-nix,
|
||||||
|
stylix,
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
|
|
@ -54,6 +57,7 @@
|
||||||
impermanence.nixosModule
|
impermanence.nixosModule
|
||||||
home-manager.nixosModule
|
home-manager.nixosModule
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
|
stylix.nixosModules.stylix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
|
||||||
20
home/alacritty.nix
Normal file
20
home/alacritty.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{...}: {
|
||||||
|
programs.alacritty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
env.TERM = "xterm-256color";
|
||||||
|
window = {
|
||||||
|
opacity = 0.8;
|
||||||
|
title = "Alacritty";
|
||||||
|
dynamic_title = false;
|
||||||
|
};
|
||||||
|
font = {
|
||||||
|
normal.family = "JetBrainsMono";
|
||||||
|
bold.family = "JetBrainsMono";
|
||||||
|
italic.family = "JetBrainsMono";
|
||||||
|
bold_italic.family = "JetBrainsMono";
|
||||||
|
size = 10;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
21
home/clipman.nix
Normal file
21
home/clipman.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = [pkgs.clipman];
|
||||||
|
|
||||||
|
# https://github.com/nix-community/home-manager/blob/master/modules/services/clipman.nix
|
||||||
|
systemd.user.services.clipman = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Clipboard management daemon";
|
||||||
|
PartOf = ["graphical-session.target"];
|
||||||
|
After = ["graphical-session.target"];
|
||||||
|
};
|
||||||
|
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.wl-clipboard}/bin/wl-paste -t --watch ${pkgs.clipman}/bin/clipman store --max-items=500";
|
||||||
|
ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
|
||||||
|
Restart = "on-failure";
|
||||||
|
KillMode = "mixed";
|
||||||
|
};
|
||||||
|
|
||||||
|
Install.WantedBy = ["graphical-session.target"];
|
||||||
|
};
|
||||||
|
}
|
||||||
10
home/common.nix
Normal file
10
home/common.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
home.sessionPath = ["$HOME/.local/bin" "$HOME/.cargo/bin"];
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
EDITOR = "hx";
|
||||||
|
VISUAL = "hx";
|
||||||
|
};
|
||||||
|
|
||||||
|
home.stateVersion = "24.11";
|
||||||
|
}
|
||||||
|
|
@ -1,4 +1,11 @@
|
||||||
{
|
{
|
||||||
user = [
|
user = [
|
||||||
|
./alacritty.nix
|
||||||
|
./clipman.nix
|
||||||
|
./common.nix
|
||||||
|
./direnv.nix
|
||||||
|
./packages.nix
|
||||||
|
./persist.nix
|
||||||
|
./stylix.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
6
home/direnv.nix
Normal file
6
home/direnv.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{...}: {
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
6
home/dunst.nix
Normal file
6
home/dunst.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{...}: {
|
||||||
|
services.dunst = {
|
||||||
|
enable = true;
|
||||||
|
settings = {};
|
||||||
|
};
|
||||||
|
}
|
||||||
5
home/fzf.nix
Normal file
5
home/fzf.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{...}: {
|
||||||
|
programs.fzf = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
16
home/git.nix
Normal file
16
home/git.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
{...}: {
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "Lilith";
|
||||||
|
userEmail = "ole@benstem.de";
|
||||||
|
difftastic.enable = true;
|
||||||
|
signing = {
|
||||||
|
key = "3586D8D6689B9C9ECD598C588712A0F317C37175";
|
||||||
|
signByDefault = true;
|
||||||
|
};
|
||||||
|
extraConfig = {
|
||||||
|
diff.algorithm = "histogram";
|
||||||
|
diff.submodule = "log";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
14
home/gpg.nix
Normal file
14
home/gpg.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
programs.gpg = {
|
||||||
|
enable = true;
|
||||||
|
settings.trust-model = "tofu+pgp";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.gpg-agent = {
|
||||||
|
enable = true;
|
||||||
|
pinentryPackage = pkgs.pinentry;
|
||||||
|
enableSshSupport = true;
|
||||||
|
sshKeys = [];
|
||||||
|
enableExtraSocket = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
37
home/packages.nix
Normal file
37
home/packages.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
{
|
||||||
|
conf,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = let
|
||||||
|
common = with pkgs; [
|
||||||
|
gcc
|
||||||
|
gnumake
|
||||||
|
git
|
||||||
|
|
||||||
|
pulssemixer
|
||||||
|
pavucontrol
|
||||||
|
playerctl
|
||||||
|
nh
|
||||||
|
wl-clipboard
|
||||||
|
xdg-utls
|
||||||
|
hyprshot
|
||||||
|
|
||||||
|
obsidian
|
||||||
|
xournalpp
|
||||||
|
vlc
|
||||||
|
keepassxc
|
||||||
|
ncspot
|
||||||
|
|
||||||
|
btop
|
||||||
|
htop
|
||||||
|
];
|
||||||
|
|
||||||
|
gaming = with pkgs; [
|
||||||
|
prismlauncher
|
||||||
|
lutris
|
||||||
|
];
|
||||||
|
in
|
||||||
|
common ++ (lib.mkIf conf.gaming.enable gaming);
|
||||||
|
}
|
||||||
4
home/stylix.nix
Normal file
4
home/stylix.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{...}: {
|
||||||
|
stylix.image = ../wallpapers/default.png;
|
||||||
|
stylix.polarity = "dark";
|
||||||
|
}
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
{...}: {
|
{conf, ...}: {
|
||||||
imports = [../../system];
|
imports = [../../system];
|
||||||
|
|
||||||
|
conf.gaming.enable = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
services.dbus.enable = true;
|
services.dbus.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
xdg-dektop-portal-hyprland
|
xdg-desktop-portal-hyprland
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue