reorganised hosts

This commit is contained in:
2021-06-04 02:06:13 +05:30
parent 02fa695a0f
commit 517b2804e5
21 changed files with 111 additions and 38 deletions

View File

@@ -10,7 +10,6 @@
start = [
auto-pairs
vim-floaterm
vim-rooter
vim-closetag
vim-floaterm
nerdcommenter
@@ -20,8 +19,8 @@
barbar-nvim
nvim-web-devicons
vim-polyglot
coc-explorer
(gruvbox.overrideAttrs (oa: { patches = [ ./nvim/gruvbox.patch ]; }))
# (gruvbox.overrideAttrs (oa: { src = pkgs.fetchFromGitHub{} }))
];
};
};

View File

@@ -79,6 +79,8 @@ bind('n', "<C-m>", "<C-w>h", {noremap=true})
bind('n', "<C-n>", "<C-w>j", {noremap=true})
bind('n', "<C-e>", "<C-w>k", {noremap=true})
bind('n', "<C-i>", "<C-w>l", {noremap=true})
bind('n', "<C-v>", ":vsplit<CR>", {noremap=true, silent=true})
bind('n', "<C-h>", ":split<CR>", {noremap=true, silent=true})
--RUN AND REPL (using vim-floaterm)

58
flake.lock generated
View File

@@ -85,6 +85,25 @@
"type": "github"
}
},
"mailserver": {
"inputs": {
"nixpkgs": "nixpkgs_2",
"utils": "utils"
},
"locked": {
"lastModified": 1622699922,
"narHash": "sha256-KJ2R+URPXVCdignP9v2eCA+/YwiNYY5HSQ0/Szv47KM=",
"owner": "simple-nixos-mailserver",
"repo": "nixos-mailserver",
"rev": "49074b7835c6d40846cb23953c04a03e1d2a4a9e",
"type": "gitlab"
},
"original": {
"owner": "simple-nixos-mailserver",
"repo": "nixos-mailserver",
"type": "gitlab"
}
},
"neovim-flake": {
"inputs": {
"flake-utils": "flake-utils_2",
@@ -123,6 +142,21 @@
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1607522989,
"narHash": "sha256-o/jWhOSAlaK7y2M57OIriRt6whuVVocS/T0mG7fd1TI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e9158eca70ae59e73fae23be5d13d3fa0cfc78b4",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1619464443,
"narHash": "sha256-R7WAb8EnkIJxxaF6GTHUPytjonhB4Zm0iatyWoW169A=",
@@ -138,7 +172,7 @@
"type": "github"
}
},
"nixpkgs_3": {
"nixpkgs_4": {
"locked": {
"lastModified": 1621840840,
"narHash": "sha256-o6h6+d5ZwrFmOTe+ma9s1Z9kyHsCW1C84IA8RZ9/fIU=",
@@ -173,7 +207,7 @@
"inputs": {
"flake-compat": "flake-compat",
"neovim-flake": "neovim-flake",
"nixpkgs": "nixpkgs_3"
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1622104855,
@@ -193,11 +227,12 @@
"inputs": {
"agenix": "agenix",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs_2",
"mailserver": "mailserver",
"nixpkgs": "nixpkgs_3",
"nur": "nur",
"nvim": "nvim",
"stable": "stable",
"utils": "utils"
"utils": "utils_2"
}
},
"stable": {
@@ -217,6 +252,21 @@
}
},
"utils": {
"locked": {
"lastModified": 1605370193,
"narHash": "sha256-YyMTf3URDL/otKdKgtoMChu4vfVL3vCMkRqpGifhUn0=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5021eac20303a61fafe17224c087f5519baed54d",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"utils_2": {
"locked": {
"lastModified": 1620759905,
"narHash": "sha256-WiyWawrgmyN0EdmiHyG2V+fqReiVi8bM9cRdMaKQOFg=",

View File

@@ -13,6 +13,7 @@
agenix.url = github:ryantm/agenix;
utils.url = github:numtide/flake-utils;
nvim.url = github:nix-community/neovim-nightly-overlay;
mailserver.url = gitlab:simple-nixos-mailserver/nixos-mailserver;
};
outputs = inputs@{self, nixpkgs, stable, ... }:
@@ -26,7 +27,10 @@
{
packages = import nixpkgs {
inherit system;
overlays = overlays ++ [ inputs.nur.overlay inputs.nvim.overlay ];
overlays = overlays ++ [
inputs.nur.overlay
inputs.nvim.overlay
];
config.allowUnfree = true;
config.allowBroken = true;
};
@@ -67,6 +71,7 @@
system = "aarch64-linux";
modules = [
./hosts/servers/marisa.nix
inputs.mailserver.nixosModules.mailserver
{
nixpkgs.pkgs = self.packages.aarch64-linux;
}

View File

@@ -71,7 +71,6 @@ in
glxinfo
sxiv
vim
w3m
feh
dwm
dmenu

Binary file not shown.

View File

@@ -10,8 +10,8 @@
package = pkgs.firefox-bin;
profiles.natto = {
name = "natto";
userChrome = builtins.readFile ../config/firefox/userChrome.css;
userContent = builtins.readFile ../config/firefox/userContent.css;
# userChrome = builtins.readFile ../config/firefox/userChrome.css;
# userContent = builtins.readFile ../config/firefox/userContent.css;
};
};
zathura = {

View File

@@ -1,21 +0,0 @@
{config, ... }:
{
networking = {
hostName = "Satori";
wireless.enable = true; # Enables wireless support via wpa_supplicant.
firewall.allowedTCPPorts = [ 22 ];
interfaces = {
enp7s0.useDHCP = true;
wlp0s20f3 = {
useDHCP = true;
ipv4.addresses = [ {
prefixLength = 24;
address = "192.168.0.109";
} ];
};
};
defaultGateway = "192.168.0.1";
nameservers = [ "1.1.1.1" "8.8.8.8" ];
};
}

View File

@@ -11,7 +11,7 @@
./common/nvidia-offload.nix
./common/pipewire.nix
./common/xorg.nix
./configs/nvim.nix
../../configs/nvim.nix
];
system.stateVersion = "20.09";
}

View File

@@ -21,7 +21,7 @@
};
grub = {
enable = true;
useOSProber = true;
# useOSProber = true;
efiSupport = true;
device = "nodev";
splashImage = ./cirno.png;

View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -0,0 +1,37 @@
{config, pkgs, ... }:
{
networking = {
hostName = "Satori";
wireless.enable = true;
firewall = {
allowedTCPPorts = [ 22 ];
allowedUDPPorts = [ 17840 ];
};
interfaces = {
enp7s0.useDHCP = true;
wlp0s20f3 = {
useDHCP = true;
ipv4.addresses = [ {
prefixLength = 24;
address = "192.168.0.109";
} ];
};
};
wireguard.interfaces.wg0 = {
ips = [ "100.0.0.3/32" ];
listenPort = 17840;
privateKeyFile = "/var/secrets/wg";
peers = [
{
#Oracle VM1
publicKey = "z0Y2VNEWcyVQVSqRHiwmiJ5/0MgSPM+HZfEcwIccSxM=";
allowedIPs = [ "100.0.0.0/24" ];
endpoint = "140.238.230.155:17840";
persistentKeepalive = 25;
}
];
};
nameservers = [ "1.1.1.1" "8.8.8.8" ];
};
}

View File

@@ -20,7 +20,10 @@
package = pkgs.mysql;
dataDir = "/var/db";
};
sshd.enable = true;
openssh = {
enable = true;
permitRootLogin = "yes";
};
/* vault = {
enable = true;
storageBackend = "mysql";
@@ -30,7 +33,7 @@
systemd.services = {
tor.wantedBy = lib.mkForce [];
logmein-hamachi.wantedBy = lib.mkForce [];
sshd.wantedBy = lib.mkForce [];
openssh.wantedBy = lib.mkForce [];
mysql.wantedBy = lib.mkForce [];
#printing.wantedBy = lib.mkForce [];
#vault.wantedBy = lib.mkForce [];

View File

@@ -13,7 +13,6 @@ fi
keys=""
for x in ~/.ssh/*.pub
do
keys= "$keys -r $(cat 'x')"
keys="$keys -r \"$(cat "$x")\""
done
echo "Encrypting with \n'$keys'"
rage -o "$TARGET" "$keys" "$1"
echo rage -o $TARGET $keys $FILE