mirror of
https://github.com/srid/nixos-config.git
synced 2026-02-04 03:53:35 +08:00
Add sample home configuration for an Ubuntu VM (#61)
This commit is contained in:
parent
3fffa9500f
commit
f755d7b091
4 changed files with 16 additions and 6 deletions
12
flake.nix
12
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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue