update
This commit is contained in:
parent
bb4617160c
commit
3cfb9e733a
@ -8,7 +8,6 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
|
||||
- [ ] Themes
|
||||
- [ ] Upload new wallpapers
|
||||
- [ ] MacOS theme
|
||||
- [ ] GithubFetch: Neofetch like, github calendar in the terminal
|
||||
- [ ] Write a hyprland shortcuts markdown file (Parse the hyprland settings conf)
|
||||
- [ ] Tofi (Wofi but terminal based)
|
||||
|
||||
|
@ -10,13 +10,10 @@
|
||||
LAPTOP_CONFIG="./hosts/laptop"
|
||||
GUEST_CONFIG="./hosts/guest"
|
||||
|
||||
cp "$LAPTOP_CONFIG/configuration.nix" "$GUEST_CONFIG/configuration.nix"
|
||||
cp "$LAPTOP_CONFIG/variables.nix" "$GUEST_CONFIG/variables.nix"
|
||||
|
||||
# Remove the NVIDIA driver import
|
||||
config=$(cat "$LAPTOP_CONFIG/configuration.nix")
|
||||
config=$(echo "$config" | sed 's/..\/shared\/nvidia/# ..\/shared\/nvidia/')
|
||||
config=$(echo "$config" | sed 's/..\/shared\/prime/# ..\/shared\/prime/')
|
||||
config=$(echo "$config" | sed 's/..\/modules\/nvidia/# ..\/modules\/nvidia/')
|
||||
config=$(echo "$config" | sed 's/..\/modules\/prime/# ..\/modules\/prime/')
|
||||
echo "$config" >"$GUEST_CONFIG/configuration.nix"
|
||||
|
||||
variables=$(cat "$LAPTOP_CONFIG/variables.nix")
|
||||
@ -27,3 +24,7 @@ variables=$(echo "$variables" | sed 's/sops = true/sops = false/')
|
||||
variables=$(echo "$variables" | sed 's/obsidian = true/obsidian = false/')
|
||||
variables=$(echo "$variables" | sed 's/tailscale = true/tailscale = false/')
|
||||
echo "$variables" >"$GUEST_CONFIG/variables.nix"
|
||||
|
||||
home=$(cat "$LAPTOP_CONFIG/home.nix")
|
||||
home=$(echo "$config" | sed 's/\.\/sops.nix/# .\/sops.nix/')
|
||||
echo "$home" >"$GUEST_CONFIG/home.nix"
|
@ -41,7 +41,7 @@
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users."hadi" = import ./home/laptop.nix;
|
||||
users."hadi" = import ./hosts/laptop/home.nix;
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
};
|
||||
}
|
||||
@ -60,7 +60,7 @@
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users."hadi" = import ./home/server.nix;
|
||||
users."hadi" = import ./hosts/server/home.nix;
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
};
|
||||
}
|
||||
@ -79,7 +79,7 @@
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users."yourusername" = import # CHANGEME
|
||||
./home/laptop.nix; # you can also create a new ./home/yourhostname.nix
|
||||
./hosts/yourhostname/home.nix; # CHANGEME
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
};
|
||||
}
|
||||
|
@ -1,34 +1,34 @@
|
||||
{ pkgs, config, ... }: {
|
||||
|
||||
imports = [
|
||||
../hosts/laptop/variables.nix # CHANGEME, replace with your host
|
||||
./variables.nix
|
||||
|
||||
# Programs
|
||||
./programs/btop
|
||||
./programs/cava
|
||||
./programs/kitty
|
||||
./programs/nextcloud
|
||||
./programs/nvim
|
||||
./programs/qutebrowser
|
||||
./programs/spicetify
|
||||
./programs/zathura
|
||||
./programs/shell
|
||||
./programs/git
|
||||
../../home/programs/btop
|
||||
../../home/programs/cava
|
||||
../../home/programs/kitty
|
||||
../../home/programs/nextcloud
|
||||
../../home/programs/nvim
|
||||
../../home/programs/qutebrowser
|
||||
../../home/programs/spicetify
|
||||
../../home/programs/zathura
|
||||
../../home/programs/shell
|
||||
../../home/programs/git
|
||||
|
||||
# Scripts
|
||||
./scripts # All scripts
|
||||
../../home/scripts # All scripts
|
||||
|
||||
# System (Desktop environment like stuff)
|
||||
./system/dunst
|
||||
./system/gtk
|
||||
./system/hyprland
|
||||
./system/waybar
|
||||
./system/wlogout
|
||||
./system/wofi
|
||||
./system/mime
|
||||
./system/udiskie
|
||||
../../home/system/dunst
|
||||
../../home/system/gtk
|
||||
../../home/system/hyprland
|
||||
../../home/system/waybar
|
||||
../../home/system/wlogout
|
||||
../../home/system/wofi
|
||||
../../home/system/mime
|
||||
../../home/system/udiskie
|
||||
|
||||
./system/sops/laptop.nix # You should probably remove this line
|
||||
./sops.nix # You should probably remove this line
|
||||
];
|
||||
|
||||
home = {
|
||||
@ -92,12 +92,11 @@
|
||||
# Import wallpapers into $HOME/wallpapers
|
||||
file."wallpapers" = {
|
||||
recursive = true;
|
||||
source = ./wallpapers;
|
||||
source = ../../home/wallpapers;
|
||||
};
|
||||
|
||||
stateVersion = "24.05";
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
}
|
@ -5,7 +5,7 @@
|
||||
|
||||
sops = {
|
||||
age.keyFile = "/home/hadi/.config/sops/age/keys.txt";
|
||||
defaultSopsFile = ../../../secrets/laptop.yaml;
|
||||
defaultSopsFile = ../../secrets/laptop.yaml;
|
||||
secrets = {
|
||||
sshconfig = { path = "/home/hadi/.ssh/config"; };
|
||||
github-key = { path = "/home/hadi/.ssh/github"; };
|
@ -1,16 +1,16 @@
|
||||
{ pkgs, config, ... }: {
|
||||
|
||||
imports = [
|
||||
../hosts/server/variables.nix
|
||||
./variables.nix
|
||||
|
||||
# Programs
|
||||
./programs/btop
|
||||
./programs/nvim
|
||||
./programs/git
|
||||
./programs/shell
|
||||
../../home/programs/btop
|
||||
../../home/programs/nvim
|
||||
../../home/programs/git
|
||||
../../home/programs/shell
|
||||
|
||||
# Scripts
|
||||
./scripts # All scripts
|
||||
../../home/scripts # All scripts
|
||||
];
|
||||
|
||||
home = {
|
||||
@ -42,5 +42,4 @@
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user