1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

kropsify some more

This commit is contained in:
Kierán Meinhardt
2019-04-11 07:43:08 +02:00
parent b9a6f33aa4
commit 60a08c6783
24 changed files with 72 additions and 59 deletions

2
.gitignore vendored
View File

@@ -1,2 +1,2 @@
/secrets.nix secrets.nix
result result

View File

@@ -1,5 +1,5 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
let vimConfig = import <niveum/dot/vim.nix> { inherit config pkgs; }; let vimConfig = import <dot/vim.nix> { inherit config pkgs; };
in { in {
programs.nano.nanorc = '' programs.nano.nanorc = ''
set autoindent set autoindent
@@ -19,7 +19,7 @@ in {
nixpkgs.config.packageOverrides = pkgs: { nixpkgs.config.packageOverrides = pkgs: {
nvim = pkgs.neovim.override { nvim = pkgs.neovim.override {
configure = { configure = {
customRC = builtins.readFile <niveum/dot/vimrc>; customRC = builtins.readFile <dot/vimrc>;
packages.nvim = with pkgs.vimPlugins; { packages.nvim = with pkgs.vimPlugins; {
start = with pkgs.vimPlugins; [ start = with pkgs.vimPlugins; [
ale ale

View File

@@ -1,6 +1,6 @@
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
{ {
services.xserver = with import <niveum/lib>; with import <niveum/theme.nix>; { services.xserver = with import <lib>; with import <dot/theme.nix>; {
enable = true; enable = true;
layout = commaSep [ "de" "gr" "ru" ]; layout = commaSep [ "de" "gr" "ru" ];
xkbVariant = commaSep [ "T3" "polytonic" "phonetic_winkeys" ]; xkbVariant = commaSep [ "T3" "polytonic" "phonetic_winkeys" ];
@@ -17,7 +17,7 @@
notifier = ''${pkgs.libnotify}/bin/notify-send -u normal -a xautolock "Locking soon" "The screen will lock in 10 seconds."''; notifier = ''${pkgs.libnotify}/bin/notify-send -u normal -a xautolock "Locking soon" "The screen will lock in 10 seconds."'';
}; };
displayManager.sessionCommands = '' displayManager.sessionCommands = ''
${pkgs.feh}/bin/feh --bg-fill $(find ${<niveum/art>} -type f | shuf -n 1) & ${pkgs.feh}/bin/feh --bg-fill $(find ${<art>} -type f | shuf -n 1) &
${pkgs.dropbox-cli}/bin/dropbox start & ${pkgs.dropbox-cli}/bin/dropbox start &
${pkgs.seafile-client}/bin/seafile-applet & ${pkgs.seafile-client}/bin/seafile-applet &
${pkgs.systemd}/bin/systemctl --user import-environment XDG_SESSION_PATH ${pkgs.systemd}/bin/systemctl --user import-environment XDG_SESSION_PATH
@@ -43,7 +43,7 @@
i18n = { i18n = {
defaultLocale = "en_GB.UTF-8"; defaultLocale = "en_GB.UTF-8";
consoleKeyMap = "de"; consoleKeyMap = "de";
consoleColors = with import <niveum/theme.nix>; map (c: lib.strings.removePrefix "#" c) colorPalette; consoleColors = with import <dot/theme.nix>; map (c: lib.strings.removePrefix "#" c) colorPalette;
}; };
services.compton = { services.compton = {
@@ -83,12 +83,12 @@
xsession.windowManager.i3 = { xsession.windowManager.i3 = {
enable = true; enable = true;
config = import <niveum/dot/i3.nix> { inherit lib pkgs config; }; config = import <dot/i3.nix> { inherit lib pkgs config; };
}; };
xresources.properties = import <niveum/dot/xresources.nix> { inherit lib; }; xresources.properties = import <dot/xresources.nix> { inherit lib; };
programs.rofi = import <niveum/dot/rofi.nix> { inherit config; }; programs.rofi = import <dot/rofi.nix> { inherit config; };
services.dunst = import <niveum/dot/dunst.nix> { inherit pkgs config; }; services.dunst = import <dot/dunst.nix> { inherit pkgs config; };
programs.urxvt = import <niveum/dot/urxvt.nix> { inherit pkgs config; }; programs.urxvt = import <dot/urxvt.nix> { inherit pkgs config; };
}; };
} }

View File

@@ -1,6 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
let let
eduroam = (import <niveum/secrets.nix>).eduroam; eduroam = (import <dot/secrets.nix>).eduroam;
eduroamConfig = { eduroamConfig = {
auth = '' auth = ''
key_mgmt=WPA-EAP key_mgmt=WPA-EAP

View File

@@ -1,13 +1,13 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let let
bvg = pkgs.callPackage <niveum/packages/bvg.nix> {}; bvg = pkgs.callPackage <packages/bvg.nix> {};
daybook = pkgs.callPackage <niveum/packages/daybook.nix> {}; daybook = pkgs.callPackage <packages/daybook.nix> {};
iolanguage = pkgs.callPackage <niveum/packages/iolanguage.nix> {}; iolanguage = pkgs.callPackage <packages/iolanguage.nix> {};
sncli = pkgs.python3Packages.callPackage <niveum/packages/sncli.nix> {}; sncli = pkgs.python3Packages.callPackage <packages/sncli.nix> {};
todoist = pkgs.callPackage <niveum/packages/todoist> {}; todoist = pkgs.callPackage <packages/todoist> {};
spotify-cli-linux = pkgs.python3Packages.callPackage <niveum/packages/spotify-cli-linux.nix> {}; spotify-cli-linux = pkgs.python3Packages.callPackage <packages/spotify-cli-linux.nix> {};
instaloader = pkgs.python3Packages.callPackage <niveum/packages/instaloader.nix> {}; instaloader = pkgs.python3Packages.callPackage <packages/instaloader.nix> {};
haskells = import <niveum/dot/haskells.nix>; haskells = import <dot/haskells.nix>;
unstable = import <nixos-unstable> {}; unstable = import <nixos-unstable> {};
executables = pkgs.haskell.lib.justStaticExecutables; executables = pkgs.haskell.lib.justStaticExecutables;
in with pkgs; in with pkgs;

View File

@@ -1,6 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ <niveum/modules/retiolum.nix> ]; imports = [ <modules/retiolum.nix> ];
networking.hosts = { networking.hosts = {
"42:0:ca48:f98f:63d7:31ce:922b:245d" = [ "go" ]; "42:0:ca48:f98f:63d7:31ce:922b:245d" = [ "go" ];
@@ -18,7 +18,7 @@
}.${config.networking.hostName}; }.${config.networking.hostName};
environment.etc."tinc/retiolum/rsa_key.priv" = { environment.etc."tinc/retiolum/rsa_key.priv" = {
text = (import <niveum/secrets.nix>).retiolum.privateKey.${config.networking.hostName}; text = (import <dot/secrets.nix>).retiolum.privateKey.${config.networking.hostName};
mode = "400"; mode = "400";
}; };
} }

View File

@@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let let
theme = import <niveum/theme.nix>; theme = import <dot/theme.nix>;
unstable = import <nixos-unstable> {}; unstable = import <nixos-unstable> {};
scripts.dic = pkgs.callPackage (pkgs.fetchurl { scripts.dic = pkgs.callPackage (pkgs.fetchurl {
url = "https://cgit.krebsco.de/stockholm/plain/krebs/5pkgs/simple/dic/default.nix?id=8371e21c10bdb5d5353cc581efba7e09e4ce7a91"; url = "https://cgit.krebsco.de/stockholm/plain/krebs/5pkgs/simple/dic/default.nix?id=8371e21c10bdb5d5353cc581efba7e09e4ce7a91";

View File

@@ -1,4 +1,4 @@
{ pkgs, lib, ... }: { config, pkgs, lib, ... }:
let let
zsh-plugins-file = zsh-plugins-file =
pkgs.writeText "zsh_plugins.txt" (lib.concatStringsSep "\n" [ pkgs.writeText "zsh_plugins.txt" (lib.concatStringsSep "\n" [
@@ -69,7 +69,7 @@ in {
export KEYTIMEOUT=1 export KEYTIMEOUT=1
hash -d nixos=/etc/nixos hash -d nixos=/etc/nixos niveum=${config.users.users.kfm.home}/prog/git/niveum
autoload -U zmv run-help autoload -U zmv run-help
@@ -77,6 +77,12 @@ in {
mkdir $1 mkdir $1
cd $1 cd $1
} }
niveum-deploy() {
for system in "$@"; do
eval $(nix-build ~niveum/deploy.nix -A "$system")
done
}
''; '';
promptInit = '' promptInit = ''
autoload -Uz vcs_info autoload -Uz vcs_info

View File

@@ -17,11 +17,18 @@ let
}; };
# stockholm.git = { # stockholm.git = {
# url = https://cgit.krebsco.de/stockholm; # url = https://cgit.krebsco.de/stockholm;
# ref = "9b2355521f8447e7da3af30bce8fb7ba6f83ed69"; # ref = "7e1b197dab13d024ba491c96dc959306324943c0";
# }; # };
system.file = toString path; system.file = toString path;
niveum.file = toString ../.; art.file = toString ./art;
nixos-config.symlink = "system/physical.nix"; lib.file = toString ./lib;
packages.file = toString ./packages;
systems.file = toString ./systems;
configs.file = toString ./configs;
dot.file = toString ./dot;
modules.file = toString ./modules;
nixos-config.symlink = "system/configuration.nix";
# secrets.pass = { # secrets.pass = {
# dir = toString ~/.password-store; # dir = toString ~/.password-store;
# name = name; # name = name;
@@ -29,17 +36,17 @@ let
}]; }];
systems.scardanelli = pkgs.krops.writeDeploy "deploy-scardanelli" { systems.scardanelli = pkgs.krops.writeDeploy "deploy-scardanelli" {
source = source "scardanelli" ./scardanelli; source = source "scardanelli" ./systems/scardanelli;
target = scardanelli-ssh; target = scardanelli-ssh;
}; };
systems.homeros = pkgs.krops.writeDeploy "deploy-homeros" { systems.homeros = pkgs.krops.writeDeploy "deploy-homeros" {
source = source "homeros" ./homeros; source = source "homeros" ./systems/homeros;
target = homeros-ssh; target = homeros-ssh;
}; };
systems.catullus = pkgs.krops.writeDeploy "deploy-catullus" { systems.catullus = pkgs.krops.writeDeploy "deploy-catullus" {
source = source "catullus" ./catullus; source = source "catullus" ./systems/catullus;
target = catullus-ssh; target = catullus-ssh;
}; };
in systems // { in systems // {

View File

@@ -1,5 +1,5 @@
{ config, pkgs }: { config, pkgs }:
with import <niveum/theme.nix>; with import <dot/theme.nix>;
{ {
enable = true; enable = true;
iconTheme = config.constants.theme.icon; iconTheme = config.constants.theme.icon;

View File

@@ -1,6 +1,6 @@
haskellPackages: haskellPackages:
with haskellPackages; [ with haskellPackages; [
(callPackage <niveum/packages/blessings.nix> {}) (callPackage <packages/blessings.nix> {})
HTTP HTTP
HUnit HUnit
MissingH MissingH

View File

@@ -1,7 +1,7 @@
{ pkgs, config, lib }: { pkgs, config, lib }:
let let
unstable = import <nixos-unstable> {}; unstable = import <nixos-unstable> {};
i3blocks_conf = import <niveum/dot/i3blocks.nix> { inherit pkgs; }; i3blocks_conf = import <dot/i3blocks.nix> { inherit pkgs; };
new-workspace = unstable.writers.writeDash "new-workspace" '' new-workspace = unstable.writers.writeDash "new-workspace" ''
i3-msg workspace $(($(i3-msg -t get_workspaces | tr , '\n' | grep '"num":' | cut -d : -f 2 | sort -rn | head -1) + 1)) i3-msg workspace $(($(i3-msg -t get_workspaces | tr , '\n' | grep '"num":' | cut -d : -f 2 | sort -rn | head -1) + 1))
''; '';
@@ -12,7 +12,7 @@ let
scardanelli = "wlp2s0"; scardanelli = "wlp2s0";
homeros = "wlp3s0"; homeros = "wlp3s0";
}.${config.networking.hostName}; }.${config.networking.hostName};
in with import <niveum/theme.nix>; in with import <dot/theme.nix>;
rec { rec {
fonts = [ "${uiFont.name} ${toString uiFont.size}" ]; fonts = [ "${uiFont.name} ${toString uiFont.size}" ];
modifier = "Mod4"; modifier = "Mod4";

View File

@@ -1,5 +1,5 @@
{ config }: { config }:
with import <niveum/theme.nix>; with import <dot/theme.nix>;
{ {
enable = true; enable = true;
separator = "solid"; separator = "solid";

View File

@@ -1,5 +1,5 @@
{ config, pkgs }: { config, pkgs }:
with import <niveum/theme.nix>; with import <dot/theme.nix>;
{ {
enable = true; enable = true;
package = pkgs.rxvt_unicode-with-plugins; package = pkgs.rxvt_unicode-with-plugins;

View File

@@ -1,5 +1,5 @@
{ lib }: { lib }:
let theme = import <niveum/theme.nix>; let theme = import <dot/theme.nix>;
in with lib; lists.foldr in with lib; lists.foldr
(i: cs: cs // { "*color${toString i}" = builtins.elemAt theme.colorPalette i; }) (i: cs: cs // { "*color${toString i}" = builtins.elemAt theme.colorPalette i; })
{ {

View File

@@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; with lib;
with import <niveum/theme.nix>; with import <dot/theme.nix>;
let let
unstable = import <nixos-unstable> {}; unstable = import <nixos-unstable> {};
stringOption = def: mkOption { type = types.string; default = def; }; stringOption = def: mkOption { type = types.string; default = def; };

View File

@@ -8,7 +8,7 @@ in {
imports = [ imports = [
<system/hardware-configuration.nix> <system/hardware-configuration.nix>
<system/containers.nix> <system/containers.nix>
<niveum/modules/retiolum.nix> <modules/retiolum.nix>
]; ];
boot.loader.grub.enable = false; boot.loader.grub.enable = false;
@@ -24,7 +24,7 @@ in {
}; };
environment.variables.TERM = "linux"; environment.variables.TERM = "linux";
environment.variables.HTOPRC = toString <niveum/dot/htoprc>; environment.variables.HTOPRC = toString <dot/htoprc>;
documentation.enable = false; documentation.enable = false;
documentation.doc.enable = false; documentation.doc.enable = false;

View File

@@ -1,8 +1,8 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
telegram-reverse = pkgs.python3Packages.callPackage <niveum/packages/telegram-reverse.nix> {}; telegram-reverse = pkgs.python3Packages.callPackage <packages/telegram-reverse.nix> {};
telegram-betacode = pkgs.python3Packages.callPackage <niveum/packages/telegram-betacode.nix> {}; telegram-betacode = pkgs.python3Packages.callPackage <packages/telegram-betacode.nix> {};
telegram-horoscope = pkgs.python3Packages.callPackage <niveum/packages/telegram-horoscope.nix> {}; telegram-horoscope = pkgs.python3Packages.callPackage <packages/telegram-horoscope.nix> {};
in { in {
containers.telegram-bots = { containers.telegram-bots = {
autoStart = true; autoStart = true;

View File

@@ -1,18 +1,18 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
helpers = import <niveum/lib>; helpers = import <lib>;
in { in {
imports = [ imports = [
"${builtins.fetchTarball https://github.com/rycee/home-manager/archive/release-18.09.tar.gz}/nixos" "${builtins.fetchTarball https://github.com/rycee/home-manager/archive/release-18.09.tar.gz}/nixos"
<niveum/options.nix> <modules/defaultApplications.nix>
<niveum/configs/hu-berlin.nix> <configs/hu-berlin.nix>
<niveum/configs/shells.nix> <configs/shells.nix>
<niveum/configs/editors.nix> <configs/editors.nix>
<niveum/configs/graphics.nix> <configs/graphics.nix>
<niveum/configs/packages.nix> <configs/packages.nix>
<niveum/configs/networks.nix> <configs/networks.nix>
<niveum/configs/scripts.nix> <configs/scripts.nix>
<niveum/configs/retiolum.nix> <configs/retiolum.nix>
]; ];
boot.cleanTmpDir = true; boot.cleanTmpDir = true;
@@ -62,7 +62,7 @@ in {
programs.tmux = { programs.tmux = {
enable = true; enable = true;
extraTmuxConf = import <niveum/dot/tmux.nix>; extraTmuxConf = import <dot/tmux.nix>;
keyMode = "vi"; keyMode = "vi";
terminal = "screen-256color"; terminal = "screen-256color";
}; };

View File

@@ -1,7 +1,8 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = imports =
[ <niveum/main.nix> [ <systems/generic.nix>
./hardware-configuration.nix
]; ];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;

View File

@@ -6,7 +6,6 @@
{ {
imports = imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
./config.nix
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" "rtsx_usb_sdmmc" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" "rtsx_usb_sdmmc" ];

View File

@@ -1,7 +1,8 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = imports =
[ <niveum/main.nix> [ <systems/generic.nix>
./hardware-configuration.nix
]; ];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;

View File

@@ -6,7 +6,6 @@
{ {
imports = imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
./config.nix
]; ];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usb_storage" "sd_mod" "sdhci_acpi" "rtsx_usb_sdmmc" ]; boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usb_storage" "sd_mod" "sdhci_acpi" "rtsx_usb_sdmmc" ];