mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
kropsify some more
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,2 @@
|
||||
/secrets.nix
|
||||
secrets.nix
|
||||
result
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ pkgs, config, ... }:
|
||||
let vimConfig = import <niveum/dot/vim.nix> { inherit config pkgs; };
|
||||
let vimConfig = import <dot/vim.nix> { inherit config pkgs; };
|
||||
in {
|
||||
programs.nano.nanorc = ''
|
||||
set autoindent
|
||||
@@ -19,7 +19,7 @@ in {
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
nvim = pkgs.neovim.override {
|
||||
configure = {
|
||||
customRC = builtins.readFile <niveum/dot/vimrc>;
|
||||
customRC = builtins.readFile <dot/vimrc>;
|
||||
packages.nvim = with pkgs.vimPlugins; {
|
||||
start = with pkgs.vimPlugins; [
|
||||
ale
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ 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;
|
||||
layout = commaSep [ "de" "gr" "ru" ];
|
||||
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."'';
|
||||
};
|
||||
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.seafile-client}/bin/seafile-applet &
|
||||
${pkgs.systemd}/bin/systemctl --user import-environment XDG_SESSION_PATH
|
||||
@@ -43,7 +43,7 @@
|
||||
i18n = {
|
||||
defaultLocale = "en_GB.UTF-8";
|
||||
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 = {
|
||||
@@ -83,12 +83,12 @@
|
||||
|
||||
xsession.windowManager.i3 = {
|
||||
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; };
|
||||
programs.rofi = import <niveum/dot/rofi.nix> { inherit config; };
|
||||
services.dunst = import <niveum/dot/dunst.nix> { inherit pkgs config; };
|
||||
programs.urxvt = import <niveum/dot/urxvt.nix> { inherit pkgs config; };
|
||||
xresources.properties = import <dot/xresources.nix> { inherit lib; };
|
||||
programs.rofi = import <dot/rofi.nix> { inherit config; };
|
||||
services.dunst = import <dot/dunst.nix> { inherit pkgs config; };
|
||||
programs.urxvt = import <dot/urxvt.nix> { inherit pkgs config; };
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
eduroam = (import <niveum/secrets.nix>).eduroam;
|
||||
eduroam = (import <dot/secrets.nix>).eduroam;
|
||||
eduroamConfig = {
|
||||
auth = ''
|
||||
key_mgmt=WPA-EAP
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
bvg = pkgs.callPackage <niveum/packages/bvg.nix> {};
|
||||
daybook = pkgs.callPackage <niveum/packages/daybook.nix> {};
|
||||
iolanguage = pkgs.callPackage <niveum/packages/iolanguage.nix> {};
|
||||
sncli = pkgs.python3Packages.callPackage <niveum/packages/sncli.nix> {};
|
||||
todoist = pkgs.callPackage <niveum/packages/todoist> {};
|
||||
spotify-cli-linux = pkgs.python3Packages.callPackage <niveum/packages/spotify-cli-linux.nix> {};
|
||||
instaloader = pkgs.python3Packages.callPackage <niveum/packages/instaloader.nix> {};
|
||||
haskells = import <niveum/dot/haskells.nix>;
|
||||
bvg = pkgs.callPackage <packages/bvg.nix> {};
|
||||
daybook = pkgs.callPackage <packages/daybook.nix> {};
|
||||
iolanguage = pkgs.callPackage <packages/iolanguage.nix> {};
|
||||
sncli = pkgs.python3Packages.callPackage <packages/sncli.nix> {};
|
||||
todoist = pkgs.callPackage <packages/todoist> {};
|
||||
spotify-cli-linux = pkgs.python3Packages.callPackage <packages/spotify-cli-linux.nix> {};
|
||||
instaloader = pkgs.python3Packages.callPackage <packages/instaloader.nix> {};
|
||||
haskells = import <dot/haskells.nix>;
|
||||
unstable = import <nixos-unstable> {};
|
||||
executables = pkgs.haskell.lib.justStaticExecutables;
|
||||
in with pkgs;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [ <niveum/modules/retiolum.nix> ];
|
||||
imports = [ <modules/retiolum.nix> ];
|
||||
|
||||
networking.hosts = {
|
||||
"42:0:ca48:f98f:63d7:31ce:922b:245d" = [ "go" ];
|
||||
@@ -18,7 +18,7 @@
|
||||
}.${config.networking.hostName};
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
theme = import <niveum/theme.nix>;
|
||||
theme = import <dot/theme.nix>;
|
||||
unstable = import <nixos-unstable> {};
|
||||
scripts.dic = pkgs.callPackage (pkgs.fetchurl {
|
||||
url = "https://cgit.krebsco.de/stockholm/plain/krebs/5pkgs/simple/dic/default.nix?id=8371e21c10bdb5d5353cc581efba7e09e4ce7a91";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
zsh-plugins-file =
|
||||
pkgs.writeText "zsh_plugins.txt" (lib.concatStringsSep "\n" [
|
||||
@@ -69,7 +69,7 @@ in {
|
||||
|
||||
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
|
||||
|
||||
@@ -77,6 +77,12 @@ in {
|
||||
mkdir $1
|
||||
cd $1
|
||||
}
|
||||
|
||||
niveum-deploy() {
|
||||
for system in "$@"; do
|
||||
eval $(nix-build ~niveum/deploy.nix -A "$system")
|
||||
done
|
||||
}
|
||||
'';
|
||||
promptInit = ''
|
||||
autoload -Uz vcs_info
|
||||
|
||||
@@ -17,11 +17,18 @@ let
|
||||
};
|
||||
# stockholm.git = {
|
||||
# url = https://cgit.krebsco.de/stockholm;
|
||||
# ref = "9b2355521f8447e7da3af30bce8fb7ba6f83ed69";
|
||||
# ref = "7e1b197dab13d024ba491c96dc959306324943c0";
|
||||
# };
|
||||
system.file = toString path;
|
||||
niveum.file = toString ../.;
|
||||
nixos-config.symlink = "system/physical.nix";
|
||||
art.file = toString ./art;
|
||||
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 = {
|
||||
# dir = toString ~/.password-store;
|
||||
# name = name;
|
||||
@@ -29,17 +36,17 @@ let
|
||||
}];
|
||||
|
||||
systems.scardanelli = pkgs.krops.writeDeploy "deploy-scardanelli" {
|
||||
source = source "scardanelli" ./scardanelli;
|
||||
source = source "scardanelli" ./systems/scardanelli;
|
||||
target = scardanelli-ssh;
|
||||
};
|
||||
|
||||
systems.homeros = pkgs.krops.writeDeploy "deploy-homeros" {
|
||||
source = source "homeros" ./homeros;
|
||||
source = source "homeros" ./systems/homeros;
|
||||
target = homeros-ssh;
|
||||
};
|
||||
|
||||
systems.catullus = pkgs.krops.writeDeploy "deploy-catullus" {
|
||||
source = source "catullus" ./catullus;
|
||||
source = source "catullus" ./systems/catullus;
|
||||
target = catullus-ssh;
|
||||
};
|
||||
in systems // {
|
||||
@@ -1,5 +1,5 @@
|
||||
{ config, pkgs }:
|
||||
with import <niveum/theme.nix>;
|
||||
with import <dot/theme.nix>;
|
||||
{
|
||||
enable = true;
|
||||
iconTheme = config.constants.theme.icon;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
haskellPackages:
|
||||
with haskellPackages; [
|
||||
(callPackage <niveum/packages/blessings.nix> {})
|
||||
(callPackage <packages/blessings.nix> {})
|
||||
HTTP
|
||||
HUnit
|
||||
MissingH
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ pkgs, config, lib }:
|
||||
let
|
||||
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" ''
|
||||
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";
|
||||
homeros = "wlp3s0";
|
||||
}.${config.networking.hostName};
|
||||
in with import <niveum/theme.nix>;
|
||||
in with import <dot/theme.nix>;
|
||||
rec {
|
||||
fonts = [ "${uiFont.name} ${toString uiFont.size}" ];
|
||||
modifier = "Mod4";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ config }:
|
||||
with import <niveum/theme.nix>;
|
||||
with import <dot/theme.nix>;
|
||||
{
|
||||
enable = true;
|
||||
separator = "solid";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ config, pkgs }:
|
||||
with import <niveum/theme.nix>;
|
||||
with import <dot/theme.nix>;
|
||||
{
|
||||
enable = true;
|
||||
package = pkgs.rxvt_unicode-with-plugins;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ lib }:
|
||||
let theme = import <niveum/theme.nix>;
|
||||
let theme = import <dot/theme.nix>;
|
||||
in with lib; lists.foldr
|
||||
(i: cs: cs // { "*color${toString i}" = builtins.elemAt theme.colorPalette i; })
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
with import <niveum/theme.nix>;
|
||||
with import <dot/theme.nix>;
|
||||
let
|
||||
unstable = import <nixos-unstable> {};
|
||||
stringOption = def: mkOption { type = types.string; default = def; };
|
||||
@@ -8,7 +8,7 @@ in {
|
||||
imports = [
|
||||
<system/hardware-configuration.nix>
|
||||
<system/containers.nix>
|
||||
<niveum/modules/retiolum.nix>
|
||||
<modules/retiolum.nix>
|
||||
];
|
||||
|
||||
boot.loader.grub.enable = false;
|
||||
@@ -24,7 +24,7 @@ in {
|
||||
};
|
||||
|
||||
environment.variables.TERM = "linux";
|
||||
environment.variables.HTOPRC = toString <niveum/dot/htoprc>;
|
||||
environment.variables.HTOPRC = toString <dot/htoprc>;
|
||||
|
||||
documentation.enable = false;
|
||||
documentation.doc.enable = false;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
telegram-reverse = pkgs.python3Packages.callPackage <niveum/packages/telegram-reverse.nix> {};
|
||||
telegram-betacode = pkgs.python3Packages.callPackage <niveum/packages/telegram-betacode.nix> {};
|
||||
telegram-horoscope = pkgs.python3Packages.callPackage <niveum/packages/telegram-horoscope.nix> {};
|
||||
telegram-reverse = pkgs.python3Packages.callPackage <packages/telegram-reverse.nix> {};
|
||||
telegram-betacode = pkgs.python3Packages.callPackage <packages/telegram-betacode.nix> {};
|
||||
telegram-horoscope = pkgs.python3Packages.callPackage <packages/telegram-horoscope.nix> {};
|
||||
in {
|
||||
containers.telegram-bots = {
|
||||
autoStart = true;
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
helpers = import <niveum/lib>;
|
||||
helpers = import <lib>;
|
||||
in {
|
||||
imports = [
|
||||
"${builtins.fetchTarball https://github.com/rycee/home-manager/archive/release-18.09.tar.gz}/nixos"
|
||||
<niveum/options.nix>
|
||||
<niveum/configs/hu-berlin.nix>
|
||||
<niveum/configs/shells.nix>
|
||||
<niveum/configs/editors.nix>
|
||||
<niveum/configs/graphics.nix>
|
||||
<niveum/configs/packages.nix>
|
||||
<niveum/configs/networks.nix>
|
||||
<niveum/configs/scripts.nix>
|
||||
<niveum/configs/retiolum.nix>
|
||||
<modules/defaultApplications.nix>
|
||||
<configs/hu-berlin.nix>
|
||||
<configs/shells.nix>
|
||||
<configs/editors.nix>
|
||||
<configs/graphics.nix>
|
||||
<configs/packages.nix>
|
||||
<configs/networks.nix>
|
||||
<configs/scripts.nix>
|
||||
<configs/retiolum.nix>
|
||||
];
|
||||
|
||||
boot.cleanTmpDir = true;
|
||||
@@ -62,7 +62,7 @@ in {
|
||||
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
extraTmuxConf = import <niveum/dot/tmux.nix>;
|
||||
extraTmuxConf = import <dot/tmux.nix>;
|
||||
keyMode = "vi";
|
||||
terminal = "screen-256color";
|
||||
};
|
||||
@@ -1,7 +1,8 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports =
|
||||
[ <niveum/main.nix>
|
||||
[ <systems/generic.nix>
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
@@ -6,7 +6,6 @@
|
||||
{
|
||||
imports =
|
||||
[ <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" ];
|
||||
@@ -1,7 +1,8 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports =
|
||||
[ <niveum/main.nix>
|
||||
[ <systems/generic.nix>
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
@@ -6,7 +6,6 @@
|
||||
{
|
||||
imports =
|
||||
[ <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" ];
|
||||
Reference in New Issue
Block a user