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

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