Compare commits

..

8 Commits

Author SHA1 Message Date
Amneesh Singh
eac8c77797 home/amneesh: update
Signed-off-by: Amneesh Singh <a-singh21@ti.com>
2024-07-12 09:51:21 +05:30
Amneesh Singh
3aab004b55 home/amneesh: init 2024-07-08 17:49:02 +05:30
270d7c2fe4 hosts/okina: add wireguard config
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2024-06-28 20:22:50 +05:30
4c87e635ab hosts/remilia: update wireguard keys
Signed-off-by: natto1784 <natto@weirdnatto.in>
2024-06-28 20:22:21 +05:30
129fa4973f conf: add okina
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2024-06-28 18:49:19 +05:30
075ee51920 hosts: minor change
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2024-06-28 18:29:26 +05:30
aeb370f299 satori: im taking this HDD with me for some time
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2024-06-28 18:29:04 +05:30
edf8d639b3 emacs: minor fix
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2024-06-28 17:41:48 +05:30
13 changed files with 75 additions and 10 deletions

View File

@@ -9,6 +9,7 @@
marisa = "${ipPrefix}.2"; marisa = "${ipPrefix}.2";
satori = "${ipPrefix}.3"; satori = "${ipPrefix}.3";
hina = "${ipPrefix}.4"; hina = "${ipPrefix}.4";
okina = "${ipPrefix}.5";
}; };
}; };
domain = { domain = {

7
home/README Normal file
View File

@@ -0,0 +1,7 @@
natto : default user for okina (desktop - NixOS Unstable)
natto-laptop : default user for satori (laptop - NixOS Unstable)
bat : default user for remilia (Oracle VM - NixOS Unstable)
spin : default user for hina (Oracle VM - NixOS Unstable)
spark : default user for marisa (RPi4 - NixOS Unstable)
amneesh : default user for nightbug (Workplace PC - Ubuntu 22.04)

24
home/amneesh.nix Normal file
View File

@@ -0,0 +1,24 @@
{ config, pkgs, inputs, ... }:
{
home = {
homeDirectory = "/home/amneesh";
username = "amneesh";
stateVersion = "24.05";
packages = with pkgs; [
htop
nattovim
clang-tools
llvmPackages.clang
];
};
imports = [
./natto/emacs.nix
# ./natto/wayland.nix
];
xdg.mime.enable = true;
targets.genericLinux.enable = true;
programs.bash.enable = true;
}

View File

@@ -19,6 +19,7 @@
}; };
initExtra = '' initExtra = ''
unsetopt extendedGlob unsetopt extendedGlob
[[ -f ~/.zsh_custom ]] && source ~/.zsh_custom
''; '';
}; };
} }

View File

@@ -80,5 +80,13 @@ in
}] ++ common; }] ++ common;
pkgs = mkPkgs "x86_64-linux"; pkgs = mkPkgs "x86_64-linux";
}; };
amneesh = inputs.home-manager.lib.homeManagerConfiguration {
inherit extraSpecialArgs;
modules = [
./amneesh.nix
] ++ common;
pkgs = mkPkgs "x86_64-linux";
};
}; };
} }

View File

@@ -501,7 +501,7 @@ not using this anymore
"M-C-k" 'enlarge-window "M-C-k" 'enlarge-window
"C-q" 'delete-window "C-q" 'delete-window
"M-C-S-q" 'kill-buffer-and-window "M-C-S-q" 'kill-buffer-and-window
"M-w" 'centaur-tabs--kill-this-buffer-dont-ask "M-w" (lambda () (interactive) (kill-buffer (current-buffer)))
"M-S-w" 'kill-window) "M-S-w" 'kill-window)
#+end_src #+end_src

View File

@@ -23,7 +23,7 @@
# GUI utils # GUI utils
slack slack
webcord vesktop
(xfce.thunar.override { (xfce.thunar.override {
thunarPlugins = with xfce; [ thunarPlugins = with xfce; [
thunar-media-tags-plugin thunar-media-tags-plugin

View File

@@ -4,6 +4,7 @@ let
commonModules = [ commonModules = [
./nvim.nix ./nvim.nix
./nix.nix
{ {
_module.args = globalArgs; _module.args = globalArgs;
} }
@@ -11,7 +12,6 @@ let
desktopModules = [ desktopModules = [
./xorg.nix ./xorg.nix
./wayland.nix ./wayland.nix
./nix.nix
./desktop-pkgs.nix ./desktop-pkgs.nix
./sound.nix ./sound.nix
]; ];

View File

@@ -3,6 +3,7 @@
nixpkgs = { nixpkgs = {
config = { config = {
allowBroken = true; allowBroken = true;
allowUnfree = true;
}; };
overlays = [ overlays = [
self.overlays.default self.overlays.default
@@ -15,14 +16,12 @@
''; '';
settings = { settings = {
auto-optimise-store = true; auto-optimise-store = true;
trusted-users = [ "root" "natto" ]; trusted-users = [ "root" "@wheel" ];
substituters = [ substituters = [
"https://nix-gaming.cachix.org"
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
# "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store" "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"
]; ];
trusted-public-keys = [ trusted-public-keys = [
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
]; ];
}; };

View File

@@ -25,12 +25,13 @@
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/media/real" = /* fileSystems."/media/real" =
{ {
device = "/dev/disk/by-uuid/8086be20-c770-46be-bd8f-5bd2d7735c7d"; device = "/dev/disk/by-uuid/8086be20-c770-46be-bd8f-5bd2d7735c7d";
fsType = "btrfs"; fsType = "btrfs";
options = [ "compress-force=zstd:3" ]; options = [ "compress-force=zstd:3" ];
}; };
*/
/* fileSystems."/media/ntfs" = /* fileSystems."/media/ntfs" =
{ {

View File

@@ -24,6 +24,20 @@
}; };
}; };
wireguard.interfaces.wg0 = with conf.network.addresses.wireguard.ips; {
ips = [ okina ];
listenPort = 17840;
privateKeyFile = "/var/secrets/wg.key";
peers = [{
#Oracle VM1
publicKey = "z0Y2VNEWcyVQVSqRHiwmiJ5/0MgSPM+HZfEcwIccSxM=";
allowedIPs = [ remilia ];
endpoint = "${conf.network.addresses.domain.natto}:17840";
persistentKeepalive = 25;
}];
};
defaultGateway = "192.168.1.1"; defaultGateway = "192.168.1.1";
nameservers = [ "1.1.1.1" "8.8.8.8" ]; nameservers = [ "1.1.1.1" "8.8.8.8" ];
}; };

View File

@@ -65,13 +65,17 @@
allowedIPs = [ ips.marisa ]; allowedIPs = [ ips.marisa ];
} }
{ {
publicKey = "SqskEH7hz7Gv9ZS+FYLRFgKZyJCFbBFCyuvzBYnbfVU="; publicKey = "oliAKHloLOulQrDwG+2NZIYg0sQAsuQ/q/lLkPCdcRE=";
allowedIPs = [ ips.satori ]; allowedIPs = [ ips.satori ];
} }
{ {
publicKey = "IHYIan9Xq2PBTSzcMdHpzx4PM67l09WdsGa6s+siyH0="; publicKey = "IHYIan9Xq2PBTSzcMdHpzx4PM67l09WdsGa6s+siyH0=";
allowedIPs = [ ips.hina ]; allowedIPs = [ ips.hina ];
} }
{
publicKey = "BRdWQYPyfZeEWGtghhoYZf90nOsU/kXB3vOFJ6A17Ao=";
allowedIPs = [ ips.okina ];
}
]; ];
}; };
}; };

View File

@@ -8,7 +8,13 @@
fileSystems."/" = fileSystems."/" =
{ {
device = "/dev/disk/by-uuid/4c02ddf5-d00e-4d84-856f-c327ae44d047"; device = "/dev/disk/by-uuid/59af143c-1a87-4654-9b31-7594ac8ba530";
fsType = "ext4";
};
fileSystems."/media/real" =
{
device = "/dev/disk/by-uuid/8086be20-c770-46be-bd8f-5bd2d7735c7d";
fsType = "btrfs"; fsType = "btrfs";
options = [ "compress-force=zstd:3" ]; options = [ "compress-force=zstd:3" ];
}; };