Refactor, mumble domain change, sway changes

This commit is contained in:
kat witch 2021-03-24 16:51:48 +00:00
parent 22cf8ab600
commit 1de1018c02
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
113 changed files with 53 additions and 46 deletions

2
.gitmodules vendored
View file

@ -1,4 +1,4 @@
[submodule "config/private"] [submodule "config/private"]
path = config/private path = private
url = "gcrypt::git@github.com:kittywitch/nixfiles-private#main" url = "gcrypt::git@github.com:kittywitch/nixfiles-private#main"
branch = main branch = main

Binary file not shown.

View file

@ -1,9 +0,0 @@
{ config, lib, pkgs, ... }:
{
secrets = {
root = "/var/lib/kat/secrets";
persistentRoot = "/var/lib/kat/secrets";
external = true;
};
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 451 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

View file

@ -7,6 +7,6 @@ let
in { in {
imports = lib.attrValues homeModules imports = lib.attrValues homeModules
++ [ ../modules/home ./private/profile/home ]; ++ [ ./modules/home ./private/profile/home ];
} }

View file

@ -0,0 +1 @@
{ ... }: { }

View file

@ -2,22 +2,22 @@
{ {
imports = [ imports = [
./hardware.nix ./hw.nix
# host-specific services # host-specific services
./postgres.nix ./postgres.nix
./virtualhosts.nix ./virtualhosts.nix
./fail2ban.nix ./fail2ban.nix
# services # services
../../services/nginx.nix ../../../services/nginx.nix
../../services/mail.nix ../../../services/mail.nix
../../services/asterisk.nix ../../../services/asterisk.nix
../../services/gitea.nix ../../../services/gitea.nix
../../services/syncplay.nix ../../../services/syncplay.nix
../../services/bitwarden.nix ../../../services/bitwarden.nix
../../services/taskserver.nix ../../../services/taskserver.nix
../../services/murmur.nix ../../../services/murmur.nix
../../services/znc.nix ../../../services/znc.nix
../../services/matrix.nix ../../../services/matrix.nix
]; ];
deploy.profiles = [ "kat" ]; deploy.profiles = [ "kat" ];

View file

@ -0,0 +1 @@
{ ... }: { }

View file

@ -1,7 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ ./hardware.nix ../../services/nginx.nix ]; imports = [ ./hw.nix ../../../services/nginx.nix ];
deploy.profiles = [ "kat" ]; deploy.profiles = [ "kat" ];
deploy.ssh.host = "boline.kittywit.ch"; deploy.ssh.host = "boline.kittywit.ch";

View file

@ -0,0 +1 @@
{ ... }: { }

View file

@ -2,9 +2,9 @@
{ {
imports = [ imports = [
./hardware.nix ./hw.nix
../../services/zfs.nix ../../../services/zfs.nix
../../services/nginx.nix ../../../services/nginx.nix
./thermal ./thermal
./vm ./vm
./torrenting.nix ./torrenting.nix

View file

@ -0,0 +1 @@
{ ... }: { }

View file

@ -1,7 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ ./hardware.nix ../../services/zfs.nix ]; imports = [ ./hw.nix ../../../services/zfs.nix ];
deploy.profiles = [ "gui" "sway" "kat" "laptop" "private" ]; deploy.profiles = [ "gui" "sway" "kat" "laptop" "private" ];
deploy.groups = [ "gui" ]; deploy.groups = [ "gui" ];

View file

@ -1,5 +1,5 @@
{ pkgs, hostsDir ? ../config/hosts, privateHostsDir ? ../config/private/hosts { pkgs, hostsDir ? ../hosts, privateHostsDir ? ../private/hosts
, commonImports ? [ ../config/nixos.nix ../modules/nixos ], pkgsPath ? ../pkgs , commonImports ? [ ../nixos.nix ../modules/nixos ], pkgsPath ? ../pkgs
, sources ? { }, witch ? { } }: , sources ? { }, witch ? { } }:
with pkgs.lib; with pkgs.lib;
@ -12,8 +12,8 @@ rec {
{ config, ... }: { { config, ... }: {
_module.args = { inherit hosts groups; }; _module.args = { inherit hosts groups; };
imports = [ imports = [
(import (hostsDir + "/${hostName}/configuration.nix")) (import (hostsDir + "/${hostName}/nixos"))
(import (privateHostsDir + "/${hostName}/configuration.nix")) (import (privateHostsDir + "/${hostName}/nixos"))
../modules/nixos/deploy ../modules/nixos/deploy
] ++ commonImports; ] ++ commonImports;
networking = { inherit hostName; }; networking = { inherit hostName; };
@ -32,7 +32,7 @@ rec {
else else
{ }) { })
]; ];
specialArgs = { inherit sources witch; }; specialArgs = { inherit sources witch hostName; };
})) hostNames); })) hostNames);
groupNames = unique (concatLists groupNames = unique (concatLists

View file

@ -5,10 +5,10 @@
"homepage": "https://nur.nix-community.org/", "homepage": "https://nur.nix-community.org/",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "d2b3d9cc84099b9b23bf54f0bbb44371fe5d70f0", "rev": "79226020063ce21ade4c192cf0c6b7da8b4e7c70",
"sha256": "00849mfq5yjxsb4fbcvs3i92qbivmrybm80wd18yq6gv1nvhl1wg", "sha256": "10xvmbm24pgl3276n34qx8217423bv5a2wha2r2wbrfbvl5m8q89",
"type": "tarball", "type": "tarball",
"url": "https://github.com/nix-community/NUR/archive/d2b3d9cc84099b9b23bf54f0bbb44371fe5d70f0.tar.gz", "url": "https://github.com/nix-community/NUR/archive/79226020063ce21ade4c192cf0c6b7da8b4e7c70.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"arc-nixexprs": { "arc-nixexprs": {
@ -98,10 +98,10 @@
"homepage": "", "homepage": "",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f17621f6881f07283e66cc478fce5dff6b4e1c72", "rev": "070bfc96b7446e7d2653a1913b9bc4082d529638",
"sha256": "0fkzlhqy6d5ss7dw7rca39zh137i5vjbwq438m14wdm7wxjazbly", "sha256": "0kwbbsqi1vlm65a14p100vffyrjprbwgr6wpcs5yhg68gxsds30v",
"type": "tarball", "type": "tarball",
"url": "https://github.com/nixos/nixpkgs/archive/f17621f6881f07283e66cc478fce5dff6b4e1c72.tar.gz", "url": "https://github.com/nixos/nixpkgs/archive/070bfc96b7446e7d2653a1913b9bc4082d529638.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"pbb-nixfiles": { "pbb-nixfiles": {

View file

@ -1,4 +1,4 @@
{ pkgs, config, lib, sources, witch, options, ... }: { pkgs, config, lib, sources, witch, options, hostName, ... }:
let let
nixosModules = witch.modList { nixosModules = witch.modList {
@ -13,7 +13,7 @@ in {
type = lib.types.attrsOf (lib.types.submoduleWith { type = lib.types.attrsOf (lib.types.submoduleWith {
modules = [ ]; modules = [ ];
specialArgs = { specialArgs = {
inherit sources witch; inherit sources witch hostName;
superConfig = config; superConfig = config;
modulesPath = sources.home-manager + "/modules"; modulesPath = sources.home-manager + "/modules";
}; };
@ -28,7 +28,7 @@ in {
users = { users = {
kat = { kat = {
imports = [ ./home.nix ]; imports = [ ./home.nix (import (./hosts + "/${hostName}/home")) ];
deploy.profile = lib.mkMerge (map (prof: { deploy.profile = lib.mkMerge (map (prof: {
${if options ? deploy.profile.${prof} then prof else null} = true; ${if options ? deploy.profile.${prof} then prof else null} = true;

View file

@ -7,7 +7,6 @@ let
inherit (super) dino; inherit (super) dino;
}; };
discord = unstable.discord.override { nss = self.nss_latest; }; discord = unstable.discord.override { nss = self.nss_latest; };
lib = super.lib.extend lib = super.lib.extend

View file

@ -18,7 +18,7 @@
passwordCommand = '' passwordCommand = ''
${pkgs.arc.pkgs.rbw-bitw}/bin/bitw -p gpg://${ ${pkgs.arc.pkgs.rbw-bitw}/bin/bitw -p gpg://${
../../../private/files/bitw/master.gpg ../../../private/files/bitw/master.gpg
} get "kittywitch email"''; } get "email/kittywitch"'';
msmtp.enable = true; msmtp.enable = true;
mbsync.enable = true; mbsync.enable = true;
mbsync.create = "maildir"; mbsync.create = "maildir";

View file

@ -48,7 +48,7 @@
passphrase_command = '' passphrase_command = ''
${pkgs.rbw-bitw}/bin/bitw -p gpg://${ ${pkgs.rbw-bitw}/bin/bitw -p gpg://${
../../../private/files/bitw/master.gpg ../../../private/files/bitw/master.gpg
} get "weechat"''; } get "comms/weechat"'';
hash_algo = "sha512"; hash_algo = "sha512";
}; };
}; };
@ -78,7 +78,10 @@
autoreconnect_delay_max = 5; autoreconnect_delay_max = 5;
lag_min-show = 1000; lag_min-show = 1000;
}; };
look = { server_buffer = "independent"; }; look = {
server_buffer = "independent";
redactions = "notice";
};
server.kat = { server.kat = {
address = "kittywit.ch"; address = "kittywit.ch";
device_name = "${superConfig.networking.hostName}/weechat"; device_name = "${superConfig.networking.hostName}/weechat";

View file

@ -18,6 +18,8 @@
coc-git coc-git
vim-fugitive vim-fugitive
vim-startify vim-startify
vim-airline
vim-airline-themes
base16-vim base16-vim
]; ];
#extraPackages = with pkgs; #extraPackages = with pkgs;

View file

@ -9,6 +9,9 @@
"colorscheme base16-rebecca "colorscheme base16-rebecca
colorscheme default colorscheme default
" tabline
let g:airline#extensions#tabline#enabled = 1
" notmuch! " notmuch!
let g:notmuch_config_file='${config.xdg.configHome}/notmuch/notmuchrc' let g:notmuch_config_file='${config.xdg.configHome}/notmuch/notmuchrc'
let g:notmuch_folders_count_threads=0 let g:notmuch_folders_count_threads=0

View file

@ -26,6 +26,7 @@
exec env --unset=SHLVL systemd-cat -t sway -- sway exec env --unset=SHLVL systemd-cat -t sway -- sway
fi fi
''; '';
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = true; enable = true;
config = let config = let
@ -86,6 +87,7 @@
"${pkgs.j4-dmenu-desktop}/bin/j4-dmenu-desktop --dmenu=\"${dmenu}\" --term='${cfg.terminal}'"; "${pkgs.j4-dmenu-desktop}/bin/j4-dmenu-desktop --dmenu=\"${dmenu}\" --term='${cfg.terminal}'";
modifier = "Mod4"; modifier = "Mod4";
assigns = { "2" = [{ class = "screenstub"; }]; };
startup = [ startup = [
{ {
command = "systemctl --user restart mako"; command = "systemctl --user restart mako";
@ -223,6 +225,9 @@
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
extraConfig = '' extraConfig = ''
seat seat0 xcursor_theme breeze_cursors 20 seat seat0 xcursor_theme breeze_cursors 20
workspace "1" output "DP-1"
workspace "2" output "DVI-D-1"
workspace "3" output "HDMI-A-1"
''; '';
}; };
}; };

Some files were not shown because too many files have changed in this diff Show more