Add sample home configuration for an Ubuntu VM (#61)

This commit is contained in:
Sridhar Ratnakumar 2024-06-27 18:37:02 -04:00 committed by GitHub
parent 3fffa9500f
commit f755d7b091
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 16 additions and 6 deletions

6
flake.lock generated
View file

@ -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": {

View file

@ -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 = {

View file

@ -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
];
};
};

View file

@ -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;