refactor: Move nix
outside of .config
dir
Technically not a config but a compose file, so I think it's better to have outside of `.config` dir
This commit is contained in:
parent
3484b4154a
commit
93a26accd1
22 changed files with 0 additions and 0 deletions
67
nix/users/default.nix
Normal file
67
nix/users/default.nix
Normal file
|
@ -0,0 +1,67 @@
|
|||
{ inputs, nixpkgs-stable, nixpkgs-unstable, home-manager, nur, vars, ... }:
|
||||
|
||||
let
|
||||
mkSystem = import ../lib/mkSystem.nix;
|
||||
mkBrew = import ../overlays/darwin/brew.nix;
|
||||
in
|
||||
{
|
||||
# Host list
|
||||
# Build with: `home-manager build --flake .#<user>@<host>`
|
||||
# e.g. `home-manager build --flake .#"ziro@ThiccBook-Pro"`
|
||||
# Switch to current build: `home-manager switch --flake .#<user>@<host>`
|
||||
#
|
||||
# If you're feeling lucky `home-manager build --flake .` or
|
||||
# `home-manager switch --flake .` should be enough, since home-manager will
|
||||
# search the correct <user>@<host> on its own.
|
||||
#
|
||||
# You may need to run `scutil --set HostName <host>` if home-manager can't
|
||||
# find your <user>@<host>.
|
||||
|
||||
"ziro@ThiccBook-Pro" =
|
||||
let
|
||||
system = "x86_64-darwin";
|
||||
inherit (
|
||||
mkSystem {
|
||||
arch = system;
|
||||
stable = nixpkgs-stable;
|
||||
unstable = nixpkgs-unstable;
|
||||
extraOverlays = [
|
||||
inputs.firefox-darwin.overlay
|
||||
(mkBrew { inherit system; brew-api = inputs.brew-api; nixpkgs = nixpkgs-stable; })
|
||||
];
|
||||
nur = nur;
|
||||
}
|
||||
) pkgs pkgs-unstable;
|
||||
vars.floorp.verticalTabHoverWidthInEm = 28;
|
||||
in
|
||||
home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = pkgs-unstable; # FIXME: switch to stable when 24.11 become stable
|
||||
extraSpecialArgs = { inherit inputs pkgs pkgs-unstable home-manager vars; };
|
||||
modules = [
|
||||
./ziro
|
||||
./ziro/darwin.nix
|
||||
../modules/home-manager/floorp.nix
|
||||
];
|
||||
};
|
||||
|
||||
"ziro@potato" =
|
||||
let
|
||||
inherit (
|
||||
mkSystem {
|
||||
arch = "x86_64-linux";
|
||||
stable = nixpkgs-stable;
|
||||
unstable = nixpkgs-unstable;
|
||||
nur = nur;
|
||||
}
|
||||
) system pkgs pkgs-unstable;
|
||||
in
|
||||
home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = pkgs-unstable; # FIXME: switch to stable when 24.11 become stable
|
||||
extraSpecialArgs = { inherit inputs pkgs pkgs-unstable home-manager vars; };
|
||||
modules = [
|
||||
./ziro
|
||||
./ziro/linux.nix
|
||||
../modules/home-manager/floorp.nix
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue