1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
+ scripts as derivations
~ move home-mananger stuff to the right modules / dot
+ home-manager ssh config
- vim: powerline symbols
~ toggle keyboard with alt+shift
+ ssh agent at startup
~ retiolum ipv6
~ texlive packages
~ shell: vim mode
+ THEMING
~ i3 minimaler + q
~ terminal: use urxvt
This commit is contained in:
Kierán Meinhardt
2018-12-30 14:34:39 +01:00
parent 9f55b9fe69
commit d4af2f2eee
21 changed files with 735 additions and 811 deletions

View File

@@ -1,6 +1,5 @@
{ config, lib, pkgs, ... }:
let
scripts = import ./dot/scripts.nix { inherit pkgs; };
helpers = import ./helpers.nix;
in {
imports = [
@@ -45,11 +44,12 @@ in {
users.users.kfm = {
name = "kfm";
description = config.constants.user.name;
home = "/home/kfm";
createHome = true;
group = "users";
extraGroups = [ "wheel" "audio" ];
password = "kfm";
extraGroups = [ "wheel" "audio" "docker" ];
hashedPassword = "$6$w9hXyGFl/.IZBXk$5OiWzS1G.5hImhh1YQmZiCXYNAJhi3X6Y3uSLupJNYYXPLMsQpx2fwF4Xr2uYzGMV8Foqh8TgUavx1APD9rcb/";
shell = pkgs.zsh;
};
@@ -72,20 +72,7 @@ in {
terminal = "screen-256color";
};
# for kdeconnect
networking.firewall = {
allowedTCPPortRanges = [ { from = 1714; to = 1764; } ];
allowedUDPPortRanges = [ { from = 1714; to = 1764; } ];
};
home-manager.users.kfm = {
gtk = {
enable = true;
font = with import ./theme.nix; { package = pkgs.roboto; name = uiFont.name; };
iconTheme = config.constants.theme.icon;
theme = config.constants.theme.gtk;
};
programs.git = {
enable = true;
userName = config.constants.user.name;
@@ -99,110 +86,24 @@ in {
unstage = "reset HEAD --";
sdiff = "diff --staged";
last = "log -1 HEAD";
pull-all = "!${scripts.git-pull-all}";
pull-all = "!pull-all"; # from dot/scripts.nix
};
ignores = config.constants.ignore;
};
programs.rofi = with import ./theme.nix; {
programs.ssh = {
enable = true;
separator = "solid";
scrollbar = false;
terminal = config.defaultApplications.terminal;
borderWidth = 0;
lines = 5;
font = "${uiFont.name} ${toString (uiFont.size + 1)}";
colors = rec {
window = { background = black; border = black; separator = gray.dark; };
rows = {
normal = {
background = window.background;
backgroundAlt = window.background;
foreground = gray.light;
highlight = { foreground = white; inherit (window) background; };
};
active = {
background = window.background;
backgroundAlt = window.background;
foreground = blue.dark;
highlight = { foreground = blue.light; inherit (window) background; };
};
urgent = {
background = window.background;
backgroundAlt = window.background;
foreground = red.dark;
highlight = { foreground = red.light; inherit (window) background; };
};
};
};
};
services.kdeconnect = {
enable = true;
indicator = true;
};
services.dunst = with import ./theme.nix; {
enable = true;
iconTheme = config.constants.theme.icon;
settings = {
global = {
transparency = 10;
font = "${uiFont.name} ${toString uiFont.size}";
geometry = "200x5-30+20";
frame_color = veryDark;
follow = "mouse";
indicate_hidden = true;
notification_height = 0;
separator_height = 2;
padding = 8;
horizontal_padding = 8;
separator_color = "auto";
sort = true;
markup = "full";
format = ''%a\n<b>%s</b>\n%b'';
alignment = "left";
show_age_threshold = 60;
bounce_freq = 0;
word_wrap = true;
ellipsize = "middle";
ignore_newline = false;
stack_duplicates = true;
hide_duplicate_count = false;
max_icon_size = 32;
sticky_history = true;
history_length = 20;
dmenu = "${pkgs.rofi}/bin/rofi -display-run dunst -show run";
browser = "${pkgs.xdg_utils}/bin/xdg-open";
verbosity = "mesg";
corner_radius = 0;
mouse_left_click = "do_action";
mouse_right_click = "close_current";
mouse_middle_click = "close_all";
};
urgency_low = { frame_color = veryDark; background = veryDark; foreground = gray.light; timeout = 5; };
urgency_normal = { frame_color = veryDark; background = gray.light; foreground = veryDark; timeout = 10; };
urgency_critical = { frame_color = veryDark; background = red.dark; foreground = veryDark; timeout = 0; };
};
matchBlocks = import dot/ssh.nix { inherit lib; };
};
home.file = {
# ".background-image".source = ./art/37333571_p0_master1200.jpg;
".config/mpv/input.conf".text = import ./dot/mpv.nix;
".config/Typora/themes/base.user.css".text = import ./dot/typora.nix;
".config/zathura/zathurarc".text = "set selection-clipboard clipboard";
".ghc/ghci.conf".text = import ./dot/ghci.nix { inherit pkgs; };
".ssh/config".text = import ./dot/ssh.nix { inherit lib; };
".stack/config.yaml".text = import ./dot/stack.nix { user = config.constants.user; };
".Xresources".text = import ./dot/xresources.nix;
".zshrc".text = "# nothing to see here";
};
};
environment.etc = {
"tinc/retiolum/rsa_key.priv" = {
text = (import ./secrets.nix).retiolum.scardanelli.privateKey;
mode = "400";
};
};
}