mirror of
https://github.com/EdenQwQ/nixos.git
synced 2026-07-16 22:16:51 +08:00
init
This commit is contained in:
commit
96895ec3aa
100 changed files with 6349 additions and 0 deletions
67
hosts/default.nix
Normal file
67
hosts/default.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
inputs,
|
||||
nixpkgs,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
let
|
||||
sharedOSModules = [
|
||||
../overlays
|
||||
../os
|
||||
../nix
|
||||
inputs.stylix.nixosModules.stylix
|
||||
inputs.niri.nixosModules.niri
|
||||
];
|
||||
sharedHomeModules = [
|
||||
../overlays
|
||||
../home
|
||||
../nix/nixpkgs.nix
|
||||
../sharedConfig.nix
|
||||
../lib/colorScheme/buildColorScheme.nix
|
||||
../lib/wallpaper/buildWallpaper.nix
|
||||
inputs.nur.modules.homeManager.default
|
||||
inputs.stylix.homeManagerModules.stylix
|
||||
inputs.niri.homeModules.niri
|
||||
inputs.nixvim.homeManagerModules.nixvim
|
||||
];
|
||||
in
|
||||
{
|
||||
flake =
|
||||
let
|
||||
host = "eden-inspiron";
|
||||
user = "eden";
|
||||
in
|
||||
{
|
||||
nixosConfigurations.${host} = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit
|
||||
inputs
|
||||
nixpkgs
|
||||
self
|
||||
host
|
||||
user
|
||||
;
|
||||
};
|
||||
modules = [
|
||||
./inspiron/os.nix
|
||||
] ++ sharedOSModules;
|
||||
};
|
||||
homeConfigurations."${user}@${host}" = inputs.home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
||||
extraSpecialArgs = {
|
||||
inherit
|
||||
inputs
|
||||
self
|
||||
host
|
||||
user
|
||||
;
|
||||
nixosVersion = "unstable";
|
||||
homeManagerVersion = "master";
|
||||
};
|
||||
modules = [
|
||||
./inspiron/home.nix
|
||||
] ++ sharedHomeModules;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue