Switch to zsh, use specialArgs to pass shell name around to update everywhere at the same time
This commit is contained in:
parent
865e47f0ce
commit
a317ac6f05
13
flake.nix
13
flake.nix
|
@ -23,17 +23,19 @@
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
home-manager,
|
home-manager,
|
||||||
...
|
...
|
||||||
} @ inputs: {
|
} @ inputs: let
|
||||||
|
shell = "zsh";
|
||||||
|
in {
|
||||||
nixosConfigurations = let
|
nixosConfigurations = let
|
||||||
userConfig = {
|
userConfig = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Evie Litherland-Smith";
|
description = "Evie Litherland-Smith";
|
||||||
group = "users";
|
group = "users";
|
||||||
extraGroups = ["networkmanager" "wheel" "video"];
|
extraGroups = ["networkmanager" "wheel" "video"];
|
||||||
shell = pkgs.fish;
|
shell = pkgs.${shell};
|
||||||
openssh.authorizedKeys.keys = import ./auth/authorized_keys.nix;
|
openssh.authorizedKeys.keys = import ./auth/authorized_keys.nix;
|
||||||
};
|
};
|
||||||
specialArgs = {inherit inputs userConfig;};
|
specialArgs = {inherit inputs shell userConfig;};
|
||||||
waybar-experimental-overlay = final: prev: {
|
waybar-experimental-overlay = final: prev: {
|
||||||
waybar = prev.waybar.overrideAttrs (oldAttrs: {
|
waybar = prev.waybar.overrideAttrs (oldAttrs: {
|
||||||
mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];
|
mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];
|
||||||
|
@ -72,7 +74,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
homeConfigurations = let
|
homeConfigurations = let
|
||||||
extraSpecialArgs = {inherit inputs;};
|
extraSpecialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
shellConfig = ./home/shell/${shell}.nix;
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
# NixOS home configurations
|
# NixOS home configurations
|
||||||
"xenia@Vanguard" = let
|
"xenia@Vanguard" = let
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
{pkgs, ...}: let
|
{
|
||||||
|
pkgs,
|
||||||
|
shellConfig,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
username = "elitherl";
|
username = "elitherl";
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../../home/shell/fish.nix
|
shellConfig
|
||||||
../../home/git/work.nix
|
../../home/git/work.nix
|
||||||
../../home/ssh/work.nix
|
../../home/ssh/work.nix
|
||||||
../../home/tui
|
../../home/tui
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
{pkgs, ...}: let
|
{
|
||||||
|
pkgs,
|
||||||
|
shell,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
|
flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
|
||||||
in {
|
in {
|
||||||
nix = {
|
nix = {
|
||||||
|
@ -21,7 +25,7 @@ in {
|
||||||
localBinInPath = true;
|
localBinInPath = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ll = "ls -laF";
|
ll = "ls -laF";
|
||||||
gg = "gitui";
|
gg = "${pkgs.gitui}/bin/gitui";
|
||||||
nosu = "sudo nixos-rebuild switch --flake ${flakeURL}";
|
nosu = "sudo nixos-rebuild switch --flake ${flakeURL}";
|
||||||
hms = "${pkgs.home-manager}/bin/home-manager switch --flake ${flakeURL}";
|
hms = "${pkgs.home-manager}/bin/home-manager switch --flake ${flakeURL}";
|
||||||
};
|
};
|
||||||
|
@ -31,9 +35,9 @@ in {
|
||||||
services.power-profiles-daemon.enable = true;
|
services.power-profiles-daemon.enable = true;
|
||||||
virtualisation.podman.enable = true;
|
virtualisation.podman.enable = true;
|
||||||
programs = {
|
programs = {
|
||||||
|
${shell}.enable = true;
|
||||||
ssh.startAgent = true;
|
ssh.startAgent = true;
|
||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
fish.enable = true;
|
|
||||||
};
|
};
|
||||||
fonts = {
|
fonts = {
|
||||||
fonts = with pkgs; [
|
fonts = with pkgs; [
|
||||||
|
|
Loading…
Reference in a new issue