mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +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
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -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": {
|
||||
|
|
|
|||
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 = {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue