Add homeconfig bases
This commit is contained in:
parent
479a2283a2
commit
4ad872e626
19
flake.nix
19
flake.nix
|
@ -28,7 +28,7 @@
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
|
|
||||||
forAllSystems = nixpkgs-stable.lib.genAttrs [
|
systems = [
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
# "i686-linux"
|
# "i686-linux"
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
|
@ -36,6 +36,8 @@
|
||||||
"x86_64-darwin"
|
"x86_64-darwin"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
forAllSystems = nixpkgs-stable.lib.genAttrs systems;
|
||||||
|
|
||||||
color-schemes = (import ./lib/colors.nix inputs).schemes;
|
color-schemes = (import ./lib/colors.nix inputs).schemes;
|
||||||
colors = color-schemes.catppuccin-mocha-sapphire;
|
colors = color-schemes.catppuccin-mocha-sapphire;
|
||||||
# colors = (import ./lib/colors.nix inputs).color-schemes.donokai;
|
# colors = (import ./lib/colors.nix inputs).color-schemes.donokai;
|
||||||
|
@ -96,10 +98,10 @@
|
||||||
mkNixosUnstableSystem = mkNixosSystem nixpkgs-unstable.lib.nixosSystem;
|
mkNixosUnstableSystem = mkNixosSystem nixpkgs-unstable.lib.nixosSystem;
|
||||||
in {
|
in {
|
||||||
dragon = mkNixosUnstableSystem "x86_64-linux" [./nixos/dragon] (with outputs.homeManagerModules; [
|
dragon = mkNixosUnstableSystem "x86_64-linux" [./nixos/dragon] (with outputs.homeManagerModules; [
|
||||||
sway
|
dragon
|
||||||
]);
|
]);
|
||||||
thinker = mkNixosUnstableSystem "x86_64-linux" [./nixos/thinker] (with outputs.homeManagerModules; [
|
thinker = mkNixosUnstableSystem "x86_64-linux" [./nixos/thinker] (with outputs.homeManagerModules; [
|
||||||
sway
|
thinker
|
||||||
]);
|
]);
|
||||||
beefcake =
|
beefcake =
|
||||||
mkNixosUnstableSystem "x86_64-linux" [
|
mkNixosUnstableSystem "x86_64-linux" [
|
||||||
|
@ -119,14 +121,19 @@
|
||||||
# Standalone home-manager configuration entrypoint
|
# Standalone home-manager configuration entrypoint
|
||||||
# Available through 'home-manager --flake .#your-username@your-hostname'
|
# Available through 'home-manager --flake .#your-username@your-hostname'
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
/*
|
# TODO: non-system-specific home configurations?
|
||||||
daniel = home-manager.lib.homeManagerConfiguration rec {
|
"base-x86_64-linux" = home-manager.lib.homeManagerConfiguration rec {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = nixpkgs-unstable.legacyPackages.${system};
|
pkgs = nixpkgs-unstable.legacyPackages.${system};
|
||||||
extraSpecialArgs = {inherit inputs outputs system colors font;};
|
extraSpecialArgs = {inherit inputs outputs system colors font;};
|
||||||
modules = with outputs.homeManagerModules; [linux];
|
modules = with outputs.homeManagerModules; [linux];
|
||||||
};
|
};
|
||||||
*/
|
"base-aarch64-darwin" = home-manager.lib.homeManagerConfiguration rec {
|
||||||
|
system = "aarch64-darwin";
|
||||||
|
pkgs = nixpkgs-unstable.legacyPackages.${system};
|
||||||
|
extraSpecialArgs = {inherit inputs outputs system colors font;};
|
||||||
|
modules = with outputs.homeManagerModules; [macos];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: nix-on-droid for phone terminal usage?
|
# TODO: nix-on-droid for phone terminal usage?
|
||||||
|
|
|
@ -21,4 +21,7 @@
|
||||||
swaylock = import ./swaylock.nix;
|
swaylock = import ./swaylock.nix;
|
||||||
desktop = import ./desktop.nix;
|
desktop = import ./desktop.nix;
|
||||||
sway = import ./sway.nix;
|
sway = import ./sway.nix;
|
||||||
|
|
||||||
|
dragon = import ./dragon.nix;
|
||||||
|
thinker = import ./thinker.nix;
|
||||||
}
|
}
|
||||||
|
|
44
modules/home-manager/dragon.nix
Normal file
44
modules/home-manager/dragon.nix
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
outputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = with outputs.homeManagerModules; [
|
||||||
|
sway
|
||||||
|
];
|
||||||
|
|
||||||
|
wayland.windowManager.sway = {
|
||||||
|
config = {
|
||||||
|
output = {
|
||||||
|
"GIGA-BYTE TECHNOLOGY CO., LTD. AORUS FO48U 23070B000307" = {
|
||||||
|
mode = "3840x2160@120Hz";
|
||||||
|
};
|
||||||
|
|
||||||
|
"Dell Inc. DELL U2720Q D3TM623" = {
|
||||||
|
# desktop left vertical monitor
|
||||||
|
mode = "3840x2160@60Hz";
|
||||||
|
transform = "90";
|
||||||
|
scale = "1.5";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
workspaceOutputAssign =
|
||||||
|
(
|
||||||
|
map
|
||||||
|
(ws: {
|
||||||
|
output = "GIGA-BYTE TECHNOLOGY CO., LTD. AORUS FO48U 23070B000307";
|
||||||
|
workspace = toString ws;
|
||||||
|
})
|
||||||
|
(lib.range 1 7)
|
||||||
|
)
|
||||||
|
++ (
|
||||||
|
map
|
||||||
|
(ws: {
|
||||||
|
output = "Dell Inc. DELL U2720Q D3TM623";
|
||||||
|
workspace = toString ws;
|
||||||
|
})
|
||||||
|
(lib.range 8 9)
|
||||||
|
);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1 +1,6 @@
|
||||||
{...}: {}
|
{outputs, ...}: {
|
||||||
|
imports = with outputs.homeManagerModules; [
|
||||||
|
common
|
||||||
|
desktop
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
|
@ -47,22 +47,31 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
exec --no-startup-id {
|
||||||
|
swaymsg "workspace 1"
|
||||||
|
}
|
||||||
|
'';
|
||||||
config = {
|
config = {
|
||||||
|
defaultWorkspace = "1";
|
||||||
|
|
||||||
|
workspaceOutputAssign = [
|
||||||
|
/*
|
||||||
|
{
|
||||||
|
output = "eDP";
|
||||||
|
workspace = "1";
|
||||||
|
*/
|
||||||
|
];
|
||||||
|
|
||||||
output = {
|
output = {
|
||||||
"*" = {
|
"*" = {
|
||||||
background = "$HOME/.wallpaper fill";
|
background = "$HOME/.wallpaper fill";
|
||||||
};
|
};
|
||||||
|
|
||||||
"Dell Inc. DELL U2720Q D3TM623" = {
|
|
||||||
# desktop left vertical monitor
|
|
||||||
transform = "90";
|
|
||||||
scale = "1.5";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: popup_during_fullscreen smart
|
# TODO: popup_during_fullscreen smart
|
||||||
focus = {
|
focus = {
|
||||||
wrapping = "no";
|
wrapping = "no"; # maybe workspace?
|
||||||
followMouse = "no";
|
followMouse = "no";
|
||||||
mouseWarping = false;
|
mouseWarping = false;
|
||||||
};
|
};
|
||||||
|
|
10
modules/home-manager/thinker.nix
Normal file
10
modules/home-manager/thinker.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{outputs, ...}: {
|
||||||
|
imports = with outputs.homeManagerModules; [
|
||||||
|
sway
|
||||||
|
];
|
||||||
|
|
||||||
|
wayland.windowManager.sway = {
|
||||||
|
# TODO: firefox initial open on workspace 2
|
||||||
|
# TODO: kitty initial open on workspace 1
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue