treewide: reorganize general structure
This commit is contained in:
parent
b86f1470ed
commit
7174a33a44
100 changed files with 60 additions and 58 deletions
|
@ -1,12 +1,12 @@
|
||||||
{
|
{osConfig, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./services/udiskie.nix
|
./services/udiskie.nix
|
||||||
./terminal
|
./terminal
|
||||||
./programs
|
./programs
|
||||||
];
|
];
|
||||||
home = {
|
home = rec {
|
||||||
username = "nezia";
|
inherit (osConfig.local.systemVars) username;
|
||||||
homeDirectory = "/home/nezia";
|
homeDirectory = "/home/${username}";
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
@ -36,7 +37,7 @@ in {
|
||||||
settings = {
|
settings = {
|
||||||
default_session = {
|
default_session = {
|
||||||
command = "${Hyprland} --config ${hyprlandConfig}";
|
command = "${Hyprland} --config ${hyprlandConfig}";
|
||||||
user = "nezia";
|
user = config.local.systemVars.username;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
|
@ -1,9 +1,9 @@
|
||||||
{inputs, ...}: let
|
{inputs, ...}: let
|
||||||
lib' = import ../lib;
|
lib' = import ../shared/lib;
|
||||||
mkSystem = args:
|
mkSystem = args:
|
||||||
inputs.nixpkgs.lib.nixosSystem {
|
inputs.nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs lib';};
|
specialArgs = {inherit inputs lib';};
|
||||||
modules = [../modules] ++ args.modules;
|
modules = [../shared/nixosModules] ++ (args.modules or []);
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
vamos = mkSystem {
|
vamos = mkSystem {
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
specialArgs,
|
specialArgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
system = "${inputs.self}/system";
|
nixos = "${inputs.self}/config/nixos";
|
||||||
home = "${inputs.self}/home";
|
hm = "${inputs.self}/config/home-manager";
|
||||||
in {
|
in {
|
||||||
local.systemVars = {
|
local.systemVars = {
|
||||||
hostName = "solaire";
|
hostName = "solaire";
|
||||||
|
@ -15,47 +15,48 @@ in {
|
||||||
fullName = "Anthony Rodriguez";
|
fullName = "Anthony Rodriguez";
|
||||||
email = "anthony@nezia.dev";
|
email = "anthony@nezia.dev";
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./modules
|
./modules
|
||||||
|
|
||||||
system
|
nixos
|
||||||
"${system}/hardware/uni-sync.nix"
|
"${nixos}/hardware/uni-sync.nix"
|
||||||
|
|
||||||
"${system}/programs/games.nix"
|
"${nixos}/programs/games.nix"
|
||||||
"${system}/hardware/nvidia.nix"
|
"${nixos}/hardware/nvidia.nix"
|
||||||
|
|
||||||
"${system}/services/logind.nix"
|
"${nixos}/services/logind.nix"
|
||||||
"${system}/services/greetd.nix"
|
"${nixos}/services/greetd.nix"
|
||||||
|
|
||||||
"${system}/programs/hyprland.nix"
|
"${nixos}/programs/hyprland.nix"
|
||||||
"${system}/services/gnome.nix"
|
"${nixos}/services/gnome.nix"
|
||||||
|
|
||||||
"${system}/services/documentation.nix"
|
"${nixos}/services/documentation.nix"
|
||||||
|
|
||||||
"${system}/services/flatpak.nix"
|
"${nixos}/services/flatpak.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
users.nezia.imports = [
|
users.nezia.imports = [
|
||||||
home
|
hm
|
||||||
"${home}/services/udiskie.nix"
|
"${hm}/services/udiskie.nix"
|
||||||
"${home}/programs/games"
|
"${hm}/programs/games"
|
||||||
|
|
||||||
"${home}/programs/waybar"
|
"${hm}/programs/waybar"
|
||||||
"${home}/programs/fuzzel.nix"
|
"${hm}/programs/fuzzel.nix"
|
||||||
"${home}/programs/hypr"
|
"${hm}/programs/hypr"
|
||||||
|
|
||||||
"${home}/services/swaync"
|
"${hm}/services/swaync"
|
||||||
"${home}/programs/swaybg.nix"
|
"${hm}/programs/swaybg.nix"
|
||||||
"${home}/programs/swaylock.nix"
|
"${hm}/programs/swaylock.nix"
|
||||||
|
|
||||||
"${home}/terminal/emulators/foot.nix"
|
"${hm}/terminal/emulators/foot.nix"
|
||||||
|
|
||||||
"${home}/services/flatpak.nix"
|
"${hm}/services/flatpak.nix"
|
||||||
"${home}/services/syncthing.nix"
|
"${hm}/services/syncthing.nix"
|
||||||
|
|
||||||
"${home}/programs/editors/neovim.nix"
|
"${hm}/programs/editors/neovim.nix"
|
||||||
];
|
];
|
||||||
extraSpecialArgs = specialArgs;
|
extraSpecialArgs = specialArgs;
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
specialArgs,
|
specialArgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
system = "${inputs.self}/system";
|
nixos = "${inputs.self}/config/nixos";
|
||||||
home = "${inputs.self}/home";
|
hm = "${inputs.self}/config/home-manager";
|
||||||
in {
|
in {
|
||||||
local.systemVars = {
|
local.systemVars = {
|
||||||
hostName = "vamos";
|
hostName = "vamos";
|
||||||
|
@ -20,42 +20,42 @@ in {
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./modules
|
./modules
|
||||||
|
|
||||||
"${system}"
|
"${nixos}"
|
||||||
"${system}/core/lanzaboote.nix"
|
"${nixos}/core/lanzaboote.nix"
|
||||||
|
|
||||||
"${system}/hardware/fprintd.nix"
|
"${nixos}/hardware/fprintd.nix"
|
||||||
"${system}/services/power.nix"
|
"${nixos}/services/power.nix"
|
||||||
"${system}/services/brightness.nix"
|
"${nixos}/services/brightness.nix"
|
||||||
|
|
||||||
"${system}/services/logind.nix"
|
"${nixos}/services/logind.nix"
|
||||||
"${system}/services/greetd.nix"
|
"${nixos}/services/greetd.nix"
|
||||||
"${system}/services/kanata.nix"
|
"${nixos}/services/kanata.nix"
|
||||||
|
|
||||||
"${system}/programs/hyprland.nix"
|
"${nixos}/programs/hyprland.nix"
|
||||||
"${system}/services/gnome.nix"
|
"${nixos}/services/gnome.nix"
|
||||||
"${system}/services/mail.nix"
|
"${nixos}/services/mail.nix"
|
||||||
|
|
||||||
"${system}/services/documentation.nix"
|
"${nixos}/services/documentation.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
users.nezia.imports = [
|
users.nezia.imports = [
|
||||||
"${home}"
|
"${hm}"
|
||||||
"${home}/services/udiskie.nix"
|
"${hm}/services/udiskie.nix"
|
||||||
|
|
||||||
"${home}/programs/hypr"
|
"${hm}/programs/hypr"
|
||||||
"${home}/programs/waybar"
|
"${hm}/programs/waybar"
|
||||||
"${home}/programs/fuzzel.nix"
|
"${hm}/programs/fuzzel.nix"
|
||||||
|
|
||||||
"${home}/services/swaync"
|
"${hm}/services/swaync"
|
||||||
"${home}/programs/swaybg.nix"
|
"${hm}/programs/swaybg.nix"
|
||||||
"${home}/programs/wlogout.nix"
|
"${hm}/programs/wlogout.nix"
|
||||||
|
|
||||||
"${home}/services/syncthing.nix"
|
"${hm}/services/syncthing.nix"
|
||||||
|
|
||||||
"${home}/programs/editors/neovim.nix"
|
"${hm}/programs/editors/neovim.nix"
|
||||||
|
|
||||||
"${home}/terminal/emulators/foot.nix"
|
"${hm}/terminal/emulators/foot.nix"
|
||||||
];
|
];
|
||||||
extraSpecialArgs = specialArgs;
|
extraSpecialArgs = specialArgs;
|
||||||
};
|
};
|
||||||
|
|
|
@ -68,7 +68,7 @@ in {
|
||||||
description = ''
|
description = ''
|
||||||
Path to an avatar image (used for hyprlock).
|
Path to an avatar image (used for hyprlock).
|
||||||
'';
|
'';
|
||||||
default = ../../assets/avatar.png;
|
default = ../../../assets/avatar.png; # TODO silly, change this
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = let
|
config = let
|
Loading…
Reference in a new issue