From f755d7b0918f49ccddd51e1200e9cc81bb709e8e Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar <3998+srid@users.noreply.github.com> Date: Thu, 27 Jun 2024 18:37:02 -0400 Subject: [PATCH] Add sample home configuration for an Ubuntu VM (#61) --- flake.lock | 6 +++--- flake.nix | 12 +++++++++++- home/default.nix | 2 +- home/neovim.nix | 2 +- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index e562edc..bcc020d 100644 --- a/flake.lock +++ b/flake.lock @@ -709,11 +709,11 @@ }, "nixos-flake": { "locked": { - "lastModified": 1719437091, - "narHash": "sha256-UIZasVC36DS5dli1VimK0VgL6JKuxDG9cMxKq1I6OQ0=", + "lastModified": 1719527630, + "narHash": "sha256-hjVTFAL9WnNbcIXXWhU/a/Q2oFrDDJmCaKqkSiYf5YE=", "owner": "srid", "repo": "nixos-flake", - "rev": "8cefa1e7af06d366f5d3fd7c97e9edbf4d38c476", + "rev": "32e6c1b3d311aca92d302cebc4ecef84a01df69a", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 29c0613..13a89a2 100644 --- a/flake.nix +++ b/flake.nix @@ -34,7 +34,7 @@ outputs = inputs@{ self, ... }: inputs.flake-parts.lib.mkFlake { inherit inputs; } { - systems = [ "x86_64-linux" "aarch64-darwin" ]; + systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ]; imports = [ inputs.treefmt-nix.flakeModule inputs.nixos-flake.flakeModule @@ -59,6 +59,16 @@ }; perSystem = { self', inputs', pkgs, system, config, ... }: { + # My Ubuntu VM + legacyPackages.homeConfigurations."srid@ubuntu" = + self.nixos-flake.lib.mkHomeConfiguration pkgs { + imports = [ + self.homeModules.common-linux + ]; + home.username = "srid"; + home.homeDirectory = "/home/srid"; + }; + # Flake inputs we want to update periodically # Run: `nix run .#update`. nixos-flake = { diff --git a/home/default.nix b/home/default.nix index bea576d..63ac3eb 100644 --- a/home/default.nix +++ b/home/default.nix @@ -7,7 +7,6 @@ imports = [ inputs.nixvim.homeManagerModules.nixvim inputs.nix-index-database.hmModules.nix-index - ./_1password.nix ./tmux.nix ./neovim.nix # ./helix.nix @@ -38,6 +37,7 @@ # ./bash.nix # ./kitty.nix ./himalaya.nix + ./_1password.nix ]; }; }; diff --git a/home/neovim.nix b/home/neovim.nix index 1f5a81a..1c8e009 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -2,7 +2,7 @@ { programs.nixvim = { - enable = pkgs.stdenv.isDarwin; # nixvim uses IFD; so not using it on Linux (breaks colmena apply) + enable = true; # Theme colorschemes.tokyonight.enable = true;