summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2022-12-14 21:22:12 +0100
committerMike Vink <mike1994vink@gmail.com>2022-12-14 21:22:12 +0100
commitdc480e6c9c3d164e4ddcfa0d46c8a90b96c7bbf0 (patch)
treeb2488bdb16d0056cf6fa4c6b05f237be62f8cb29
parenta24fa6d16a9bc2021817cb68fddc44f88a5d7cb8 (diff)
docker and some aliases
-rw-r--r--configuration.nix2
-rw-r--r--flake.nix2
-rw-r--r--home.nix11
3 files changed, 13 insertions, 2 deletions
diff --git a/configuration.nix b/configuration.nix
index fb72f67..c619c38 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -6,6 +6,8 @@
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "docker"];
};
+
+ virtualisation.docker.enable = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
diff --git a/flake.nix b/flake.nix
index 6e8c269..0e42c7d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -37,7 +37,7 @@
in {
nixosConfigurations.lemptop = nixpkgs.lib.nixosSystem {
inherit system;
- modules = [ ./configuration.nix ./lemptop.nix ];
+ modules = [./configuration.nix ./lemptop.nix];
};
homeConfigurations.mike = home-manager.lib.homeManagerConfiguration {
diff --git a/home.nix b/home.nix
index 7f2567a..6ab3af2 100644
--- a/home.nix
+++ b/home.nix
@@ -52,6 +52,11 @@
programs.bash = {
enable = true;
shellAliases = {
+ s = "sudo nixos-rebuild switch --flake ${config.home.homeDirectory}/flake#";
+ h = "home-manager switch --flake ${config.home.homeDirectory}/flake#${config.home.username}";
+ V = "xrandr --output HDMI1 --auto --output eDP1 --off";
+ v = "xrandr --output eDP1 --auto --output HDMI1 --off";
+ vV = "xrandr --output eDP1 --auto --output HDMI1 --off";
newflake = "nix flake new -t github:nix-community/nix-direnv ";
};
};
@@ -93,7 +98,11 @@
neovim-symlink = home-manager.lib.hm.dag.entryAfter ["writeBoundary"] ''
NEOVIM_CONFIG="${config.home.homeDirectory}/neovim"
XDG_CONFIG_HOME_NVIM="${config.xdg.configHome}/nvim"
- $DRY_RUN_CMD ln -sf $NEOVIM_CONFIG $XDG_CONFIG_HOME_NVIM
+ if [ -L $XDG_CONFIG_HOME_NVIM ] && [ -e $XDG_CONFIG_HOME_NVIM ]; then
+ $DRY_RUN_CMD echo "neovim linked"
+ else
+ $DRY_RUN_CMD ln -s $NEOVIM_CONFIG $XDG_CONFIG_HOME_NVIM
+ fi
'';
clearHotpotCache = home-manager.lib.hm.dag.entryAfter ["writeBoundary"] ''
HOTPOT_CACHE="${config.xdg.cacheHome}/nvim/hotpot"