Refactoring of variables
This commit is contained in:
parent
222fad61ea
commit
5b430c3ac3
8 changed files with 60 additions and 32 deletions
|
@ -76,6 +76,8 @@
|
||||||
spotify-tui
|
spotify-tui
|
||||||
wiki-tui
|
wiki-tui
|
||||||
speedcrunch
|
speedcrunch
|
||||||
|
thefuck
|
||||||
|
eza
|
||||||
|
|
||||||
#Desktop
|
#Desktop
|
||||||
aerc
|
aerc
|
||||||
|
@ -94,7 +96,8 @@
|
||||||
obsidian
|
obsidian
|
||||||
lazygit
|
lazygit
|
||||||
betterdiscordctl
|
betterdiscordctl
|
||||||
|
audacity
|
||||||
|
pdfarranger
|
||||||
|
|
||||||
#Dev
|
#Dev
|
||||||
python3
|
python3
|
||||||
|
|
38
flake.nix
38
flake.nix
|
@ -34,20 +34,32 @@
|
||||||
# NixOS configuration entrypoint
|
# NixOS configuration entrypoint
|
||||||
# Available through 'nixos-rebuild --flake .#your-hostname'
|
# Available through 'nixos-rebuild --flake .#your-hostname'
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
nix-laptop = nixpkgs.lib.nixosSystem {
|
laptop = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = {
|
||||||
|
inherit inputs outputs;
|
||||||
|
myhostname = "laptop";
|
||||||
|
};
|
||||||
modules = [./maskiner/laptop/configuration.nix];
|
modules = [./maskiner/laptop/configuration.nix];
|
||||||
};
|
};
|
||||||
nix-desktop = nixpkgs.lib.nixosSystem {
|
desktop = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = {
|
||||||
|
inherit inputs outputs;
|
||||||
|
myhostname = "desktop";
|
||||||
|
};
|
||||||
modules = [./maskiner/desktop/configuration.nix];
|
modules = [./maskiner/desktop/configuration.nix];
|
||||||
};
|
};
|
||||||
fw-jobb = nixpkgs.lib.nixosSystem {
|
jobb = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = {
|
||||||
|
inherit inputs outputs;
|
||||||
|
myhostname = "jobb";
|
||||||
|
};
|
||||||
modules = [./maskiner/jobb/configuration.nix];
|
modules = [./maskiner/jobb/configuration.nix];
|
||||||
};
|
};
|
||||||
server = nixpkgs.lib.nixosSystem {
|
server = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = {
|
||||||
|
inherit inputs outputs;
|
||||||
|
myhostname = "server";
|
||||||
|
};
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
({nixpkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
({nixpkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
||||||
|
@ -59,28 +71,28 @@
|
||||||
# Standalone home-manager configuration entrypoint
|
# Standalone home-manager configuration entrypoint
|
||||||
# Available through 'home-manager --flake .#your-username@your-hostname'
|
# Available through 'home-manager --flake .#your-username@your-hostname'
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
"fw@nix-laptop" = home-manager.lib.homeManagerConfiguration {
|
"fw@laptop" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs outputs;
|
inherit inputs outputs;
|
||||||
myhostname = "nix-laptop";
|
myhostname = "laptop";
|
||||||
};
|
};
|
||||||
modules = [./config/home.nix];
|
modules = [./config/home.nix];
|
||||||
};
|
};
|
||||||
"fw@nix-desktop" = home-manager.lib.homeManagerConfiguration {
|
"fw@desktop" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs outputs;
|
inherit inputs outputs;
|
||||||
myhostname = "nix-desktop";
|
myhostname = "desktop";
|
||||||
};
|
};
|
||||||
# > Our main home-manager configuration file <
|
# > Our main home-manager configuration file <
|
||||||
modules = [./config/home.nix];
|
modules = [./config/home.nix];
|
||||||
};
|
};
|
||||||
"fw@fw-jobb" = home-manager.lib.homeManagerConfiguration {
|
"fw@jobb" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs outputs;
|
inherit inputs outputs;
|
||||||
myhostname = "fw-jobb";
|
myhostname = "jobb";
|
||||||
};
|
};
|
||||||
# > Our main home-manager configuration file <
|
# > Our main home-manager configuration file <
|
||||||
modules = [./config/home.nix];
|
modules = [./config/home.nix];
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
myhostname,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# You can import other NixOS modules here
|
# You can import other NixOS modules here
|
||||||
|
@ -15,7 +16,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
networking.hostName = "nix-desktop";
|
networking.hostName = myhostname;
|
||||||
|
|
||||||
services.xserver.dpi = 100;
|
services.xserver.dpi = 100;
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
myhostname,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# You can import other NixOS modules here
|
# You can import other NixOS modules here
|
||||||
|
@ -14,7 +15,7 @@
|
||||||
../../config/users.nix
|
../../config/users.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "fw-jobb";
|
networking.hostName = myhostname;
|
||||||
|
|
||||||
services.xserver.dpi = 140;
|
services.xserver.dpi = 140;
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
myhostname,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# You can import other NixOS modules here
|
# You can import other NixOS modules here
|
||||||
|
@ -14,7 +15,7 @@
|
||||||
../../config/users.nix
|
../../config/users.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "nix-laptop";
|
networking.hostName = myhostname;
|
||||||
|
|
||||||
services.xserver.dpi = 140;
|
services.xserver.dpi = 140;
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
myhostname,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# You can import other NixOS modules here
|
# You can import other NixOS modules here
|
||||||
|
@ -14,7 +15,7 @@
|
||||||
../../moduler/common/nginx.nix
|
../../moduler/common/nginx.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "server";
|
networking.hostName = myhostname;
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
overlays = [
|
overlays = [
|
||||||
];
|
];
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
let
|
let
|
||||||
dwm = pkgs.dwm.overrideAttrs (old: {
|
dwm = pkgs.dwm.overrideAttrs (old: {
|
||||||
src = builtins.fetchGit {
|
src = builtins.fetchGit {
|
||||||
# url = "https://github.com/FredzyW/dwm-conf.git";
|
url = "https://github.com/FredzyW/dwm-conf.git";
|
||||||
# rev = "99a1e812295bcf65625a4b5a0dc1022658977920";
|
rev = "99a1e812295bcf65625a4b5a0dc1022658977920";
|
||||||
url = "https://git.wastring.com/fw/dwm.git";
|
# url = "https://git.wastring.com/fw/dwm.git";
|
||||||
rev = "04039f157960b83f1ab8abebb0ea77c72a75a249";
|
# rev = "04039f157960b83f1ab8abebb0ea77c72a75a249";
|
||||||
};
|
};
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
xorg.libX11.dev
|
xorg.libX11.dev
|
||||||
|
@ -16,17 +16,17 @@ let
|
||||||
});
|
});
|
||||||
dwmblocks = if myhostname == "nix-desktop" then pkgs.dwmblocks.overrideAttrs (old: {
|
dwmblocks = if myhostname == "nix-desktop" then pkgs.dwmblocks.overrideAttrs (old: {
|
||||||
src = builtins.fetchGit {
|
src = builtins.fetchGit {
|
||||||
# url = "https://github.com/FredzyW/dwmblocks.git";
|
url = "https://github.com/FredzyW/dwmblocks.git";
|
||||||
# rev = "a334789ec7b9171a3c8e1fcac2ffe8463ee438dc";
|
rev = "a334789ec7b9171a3c8e1fcac2ffe8463ee438dc";
|
||||||
url = "https://git.wastring.com/fw/dwmblocks.git";
|
# url = "https://git.wastring.com/fw/dwmblocks.git";
|
||||||
rev = "ce19d482155f3292dc77179a2485670a48d2669c";
|
# rev = "ce19d482155f3292dc77179a2485670a48d2669c";
|
||||||
};
|
};
|
||||||
}) else pkgs.dwmblocks.overrideAttrs (old: {
|
}) else pkgs.dwmblocks.overrideAttrs (old: {
|
||||||
src = builtins.fetchGit {
|
src = builtins.fetchGit {
|
||||||
# url = "https://github.com/FredzyW/dwmblocks.git";
|
url = "https://github.com/FredzyW/dwmblocks.git";
|
||||||
# rev = "7c81c55390f2deec2a3804217abe80221ef6f46a";
|
rev = "7c81c55390f2deec2a3804217abe80221ef6f46a";
|
||||||
url = "https://git.wastring.com/fw/dwmblocks.git";
|
# url = "https://git.wastring.com/fw/dwmblocks.git";
|
||||||
rev = "52198f692f5965b3e86577e8481e035d4c37ab52";
|
# rev = "52198f692f5965b3e86577e8481e035d4c37ab52";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
in
|
in
|
||||||
|
|
|
@ -19,6 +19,14 @@
|
||||||
name = "powerlevel10k";
|
name = "powerlevel10k";
|
||||||
src = pkgs.zsh-powerlevel10k;
|
src = pkgs.zsh-powerlevel10k;
|
||||||
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "zsh-syntax-highlighting";
|
||||||
|
src = pkgs.zsh-syntax-highlighting;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "zsh-autosuggestions";
|
||||||
|
src = pkgs.zsh-autosuggestions;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
profileExtra = "
|
profileExtra = "
|
||||||
|
@ -27,8 +35,8 @@
|
||||||
fi
|
fi
|
||||||
";
|
";
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ls="ls --color=auto";
|
ls="eza";
|
||||||
ll="ls -al --color=auto";
|
ll="eza -al";
|
||||||
ccr="gcc intopt.c && ./a.out";
|
ccr="gcc intopt.c && ./a.out";
|
||||||
homec="nvim ~/nix/config/home.nix";
|
homec="nvim ~/nix/config/home.nix";
|
||||||
nvimc="nvim ~/.config/nvim/init.lua";
|
nvimc="nvim ~/.config/nvim/init.lua";
|
||||||
|
@ -65,6 +73,7 @@
|
||||||
# autoload -Uz compinit
|
# autoload -Uz compinit
|
||||||
autoload -U compinit; compinit
|
autoload -U compinit; compinit
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
eval $(thefuck --alias)
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue