Add homeconfig bases

This commit is contained in:
Daniel Flanagan 2023-10-06 00:49:19 -05:00
parent 479a2283a2
commit 4ad872e626
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
6 changed files with 92 additions and 14 deletions

View file

@ -28,7 +28,7 @@
} @ inputs: let
inherit (self) outputs;
forAllSystems = nixpkgs-stable.lib.genAttrs [
systems = [
"aarch64-linux"
# "i686-linux"
"x86_64-linux"
@ -36,6 +36,8 @@
"x86_64-darwin"
];
forAllSystems = nixpkgs-stable.lib.genAttrs systems;
color-schemes = (import ./lib/colors.nix inputs).schemes;
colors = color-schemes.catppuccin-mocha-sapphire;
# colors = (import ./lib/colors.nix inputs).color-schemes.donokai;
@ -96,10 +98,10 @@
mkNixosUnstableSystem = mkNixosSystem nixpkgs-unstable.lib.nixosSystem;
in {
dragon = mkNixosUnstableSystem "x86_64-linux" [./nixos/dragon] (with outputs.homeManagerModules; [
sway
dragon
]);
thinker = mkNixosUnstableSystem "x86_64-linux" [./nixos/thinker] (with outputs.homeManagerModules; [
sway
thinker
]);
beefcake =
mkNixosUnstableSystem "x86_64-linux" [
@ -119,14 +121,19 @@
# Standalone home-manager configuration entrypoint
# Available through 'home-manager --flake .#your-username@your-hostname'
homeConfigurations = {
/*
daniel = home-manager.lib.homeManagerConfiguration rec {
# TODO: non-system-specific home configurations?
"base-x86_64-linux" = home-manager.lib.homeManagerConfiguration rec {
system = "x86_64-linux";
pkgs = nixpkgs-unstable.legacyPackages.${system};
extraSpecialArgs = {inherit inputs outputs system colors font;};
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?

View file

@ -21,4 +21,7 @@
swaylock = import ./swaylock.nix;
desktop = import ./desktop.nix;
sway = import ./sway.nix;
dragon = import ./dragon.nix;
thinker = import ./thinker.nix;
}

View 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)
);
};
};
}

View file

@ -1 +1,6 @@
{...}: {}
{outputs, ...}: {
imports = with outputs.homeManagerModules; [
common
desktop
];
}

View file

@ -47,22 +47,31 @@
enable = true;
};
extraConfig = ''
exec --no-startup-id {
swaymsg "workspace 1"
}
'';
config = {
defaultWorkspace = "1";
workspaceOutputAssign = [
/*
{
output = "eDP";
workspace = "1";
*/
];
output = {
"*" = {
background = "$HOME/.wallpaper fill";
};
"Dell Inc. DELL U2720Q D3TM623" = {
# desktop left vertical monitor
transform = "90";
scale = "1.5";
};
};
# TODO: popup_during_fullscreen smart
focus = {
wrapping = "no";
wrapping = "no"; # maybe workspace?
followMouse = "no";
mouseWarping = false;
};

View 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
};
}