Update home-manager config for use on Ubuntu
This commit is contained in:
parent
0a0ead86dc
commit
0e0fc2d3e7
3 changed files with 19 additions and 11 deletions
11
README.md
11
README.md
|
@ -1,8 +1,9 @@
|
||||||
|
# Install Nix/Lix
|
||||||
|
`curl --proto '=https' --tlsv1.2 -sSf -L https://install.lix.systems/lix | sh -s -- install --no-confirm`
|
||||||
|
|
||||||
# Bootstrap home-manager
|
# Bootstrap home-manager
|
||||||
```
|
```
|
||||||
nix-shell -p git -p home-manager
|
nix run nixpkgs#git https://git.mlaga97.space/mlaga97/mlaga97-nix
|
||||||
cd .config
|
cd mlaga97-nix
|
||||||
# git clone ssh://git@git.mlaga97.space:2222/mlaga97/home-manager
|
./home.sh
|
||||||
git clone https://git.mlaga97.space/mlaga97/home-manager
|
|
||||||
home-manager switch
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
home.homeDirectory = "/home/lauren_lagarde";
|
home.homeDirectory = "/home/lauren_lagarde";
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
home.stateVersion = pkgs.lib.mkDefault "25.05";
|
||||||
}
|
}
|
||||||
|
|
||||||
./home-manager/base.nix
|
./home-manager/base.nix
|
||||||
|
|
|
@ -7,18 +7,24 @@ in {
|
||||||
ssh-with-yubikey = "ssh_with_yubikey";
|
ssh-with-yubikey = "ssh_with_yubikey";
|
||||||
};
|
};
|
||||||
bashrcExtra = ''
|
bashrcExtra = ''
|
||||||
|
# Load Default .bashrc if non-NixOS
|
||||||
|
if [ -e "/etc/skel/.bashrc" ]; then
|
||||||
|
source /etc/skel/.bashrc
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Helper Functions
|
||||||
ssh_with_yubikey () { AGENT_SOCKET=$(ssh $@ gpgconf --list-dirs agent-socket) && ssh -A -R "$AGENT_SOCKET:$(gpgconf --list-dirs agent-socket)" -o "StreamLocalBindUnlink=yes" $@; }
|
ssh_with_yubikey () { AGENT_SOCKET=$(ssh $@ gpgconf --list-dirs agent-socket) && ssh -A -R "$AGENT_SOCKET:$(gpgconf --list-dirs agent-socket)" -o "StreamLocalBindUnlink=yes" $@; }
|
||||||
|
|
||||||
case "$(sed -n 's|^NAME=||p' /etc/os-release)" in
|
case "$(sed -n 's|^NAME=||p' /etc/os-release)" in
|
||||||
"Alpine Linux")
|
|
||||||
DISTRO_SYMBOL=""
|
|
||||||
;;
|
|
||||||
"Ubuntu")
|
|
||||||
DISTRO_SYMBOL=""
|
|
||||||
;;
|
|
||||||
"NixOS")
|
"NixOS")
|
||||||
DISTRO_SYMBOL=""
|
DISTRO_SYMBOL=""
|
||||||
;;
|
;;
|
||||||
|
"Ubuntu"|'"Ubuntu"')
|
||||||
|
DISTRO_SYMBOL=""
|
||||||
|
;;
|
||||||
|
"Alpine Linux")
|
||||||
|
DISTRO_SYMBOL=""
|
||||||
|
;;
|
||||||
"Arch Linux")
|
"Arch Linux")
|
||||||
DISTRO_SYMBOL=""
|
DISTRO_SYMBOL=""
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue