update alias to match chosen config
This commit is contained in:
parent
2873b1b739
commit
3ac491502a
|
@ -4,7 +4,7 @@
|
|||
home-manager = {
|
||||
useUserPackages = true;
|
||||
useGlobalPkgs = true;
|
||||
extraSpecialArgs = { inherit inputs username; };
|
||||
extraSpecialArgs = { inherit inputs username host; };
|
||||
users.${username} = {
|
||||
imports =
|
||||
if (host == "desktop") then
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{inputs, username, ...}: {
|
||||
{inputs, username, host, ...}: {
|
||||
imports =
|
||||
[(import ./default.nix)]
|
||||
++ [(import ./rider.nix)] # C# JetBrain editor
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{inputs, username, ...}: {
|
||||
{inputs, username, host, ...}: {
|
||||
imports =
|
||||
[(import ./aseprite/aseprite.nix)] # pixel art editor
|
||||
++ [(import ./audacious/audacious.nix)] # music player
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ hostname, config, pkgs, ...}:
|
||||
{ hostname, config, pkgs, host, ...}:
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
|
@ -35,8 +35,8 @@
|
|||
cdnix = "cd ~/nixos-config && codium ~/nixos-config";
|
||||
ns = "nix-shell --run zsh";
|
||||
nix-shell = "nix-shell --run zsh";
|
||||
nix-switch = "sudo nixos-rebuild switch --flake ~/nixos-config#nixos";
|
||||
nix-switchu = "sudo nixos-rebuild switch --upgrade --flake ~/nixos-config#nixos";
|
||||
nix-switch = "sudo nixos-rebuild switch --flake ~/nixos-config#${host}";
|
||||
nix-switchu = "sudo nixos-rebuild switch --upgrade --flake ~/nixos-config#${host}";
|
||||
nix-flake-update = "sudo nix flake update ~/nixos-config#";
|
||||
nix-clean = "sudo nix-collect-garbage && sudo nix-collect-garbage -d && sudo rm /nix/var/nix/gcroots/auto/* && nix-collect-garbage && nix-collect-garbage -d";
|
||||
|
||||
|
|
Loading…
Reference in a new issue