First attempt at dendritic pattern
This commit is contained in:
parent
adb80fa45e
commit
aed2276261
24
dendritic/flake.nix
Normal file
24
dendritic/flake.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
description = "Dendritic flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs = {
|
||||
url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
flake-parts = {
|
||||
url = "github:hercules-ci/flake-parts";
|
||||
};
|
||||
|
||||
import-tree = {
|
||||
url = "github:vic/import-tree";
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } ( inputs.import-tree ./modules );
|
||||
}
|
||||
15
dendritic/modules/features/home-manager.nix
Normal file
15
dendritic/modules/features/home-manager.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ self, inputs, ... }:
|
||||
|
||||
{
|
||||
# Home manager config
|
||||
flake.nixosModules.homeManager = { pkgs, ... }: {
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
36
dendritic/modules/hosts/framework/configuration.nix
Normal file
36
dendritic/modules/hosts/framework/configuration.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ self, inputs, ... }:
|
||||
|
||||
{
|
||||
flake.nixosConfigurations.framework = inputs.nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
self.nixosModules.frameworkModule
|
||||
self.nixosModules.homeManager
|
||||
];
|
||||
};
|
||||
|
||||
# The configuration.nix for system config
|
||||
flake.nixosModules.frameworkModule = { pkgs, ... }: {
|
||||
environment = {
|
||||
systemPackages = [
|
||||
pkgs.neovim
|
||||
pkgs.firefox
|
||||
];
|
||||
};
|
||||
|
||||
users = {
|
||||
users = {
|
||||
alex = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
users = {
|
||||
alex = self.homeModules.alexModule;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
13
dendritic/modules/parts.nix
Normal file
13
dendritic/modules/parts.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.home-manager.flakeModules.home-manager
|
||||
];
|
||||
|
||||
config.systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-darwin"
|
||||
];
|
||||
|
||||
}
|
||||
@ -1,12 +1,4 @@
|
||||
{}:
|
||||
{pkgs, ...}:
|
||||
|
||||
{
|
||||
programs.niri = {
|
||||
enable = true;
|
||||
config = {
|
||||
input = {
|
||||
focus-follows-mouse = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user