one config for each host
This commit is contained in:
parent
e3b990c590
commit
3051fd8593
3 changed files with 49 additions and 23 deletions
4
bar.nix
4
bar.nix
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, config, pkgs, variant, username, ... }: {
|
||||
{ lib, config, pkgs, variant, ... }: {
|
||||
|
||||
home.packages = with pkgs; [
|
||||
material-design-icons
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
enable = true;
|
||||
# systemd.enable = true;
|
||||
settings = {
|
||||
bar = {
|
||||
bar = let username = config.home.username; in {
|
||||
"reload_style_on_change" = true;
|
||||
layer = "top";
|
||||
position = "bottom";
|
||||
|
|
|
|||
62
flake.nix
62
flake.nix
|
|
@ -21,27 +21,53 @@
|
|||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||
pkgs-unstable = inputs.unstable.legacyPackages.${system};
|
||||
nixgl = inputs.nixgl.packages.${system};
|
||||
|
||||
config = import ./config.nix;
|
||||
in {
|
||||
homeConfigurations.${config.username} = inputs.home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
homeConfigurations."anvaure@Allegro23-12" =
|
||||
inputs.home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
|
||||
extraSpecialArgs = {
|
||||
inherit pkgs-unstable;
|
||||
inherit (config) username variant;
|
||||
inherit nixgl;
|
||||
extraSpecialArgs = {
|
||||
inherit pkgs-unstable;
|
||||
variant = "allegro";
|
||||
};
|
||||
|
||||
modules = [
|
||||
{ home.username = "anvaure"; }
|
||||
./home.nix
|
||||
{ home.packages = [ nixgl.nixGLIntel ]; }
|
||||
{ home.packages = [ inputs.st-flexipatch.packages.${system}.st ]; }
|
||||
];
|
||||
};
|
||||
|
||||
modules = [
|
||||
./home.nix
|
||||
{
|
||||
home.packages = [ nixgl.nixGLIntel ];
|
||||
}
|
||||
{
|
||||
home.packages = [ inputs.st-flexipatch.packages.${system}.st ];
|
||||
}
|
||||
];
|
||||
};
|
||||
homeConfigurations."ant@hs" =
|
||||
inputs.home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
|
||||
extraSpecialArgs = {
|
||||
inherit pkgs-unstable;
|
||||
variant = "hs";
|
||||
};
|
||||
|
||||
modules = [
|
||||
{ home.username = "ant"; }
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
|
||||
homeConfigurations."ant@nixos" =
|
||||
inputs.home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
|
||||
extraSpecialArgs = {
|
||||
inherit pkgs-unstable;
|
||||
variant = "default";
|
||||
};
|
||||
|
||||
modules = [
|
||||
{ home.username = "ant"; }
|
||||
./home.nix
|
||||
{ home.packages = [ inputs.st-flexipatch.packages.${system}.st ]; }
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
6
home.nix
6
home.nix
|
|
@ -1,4 +1,4 @@
|
|||
{ inputs, config, lib, pkgs, username, variant, ... }:
|
||||
{ inputs, config, lib, pkgs, variant, ... }:
|
||||
{
|
||||
|
||||
imports = [
|
||||
|
|
@ -16,9 +16,9 @@
|
|||
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# manage.
|
||||
home.username = username;
|
||||
home.homeDirectory = "/home/${config.home.username}";
|
||||
|
||||
|
||||
home.stateVersion = "23.05"; # Please read the comment before changing.
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
|
@ -152,7 +152,7 @@
|
|||
XCURSOR_SIZE = "24";
|
||||
CCACHE_MAXSIZE = "40Gi";
|
||||
} // (if variant == "allegro" then {
|
||||
TMPDIR = "/home/${username}/tmp";
|
||||
TMPDIR = "/home/${config.home.username}/tmp";
|
||||
GSETTINGS_SCHEMA_DIR = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/gsettings-desktop-schemas-47.1/glib-2.0/schemas";
|
||||
} else {});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue