mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-11 02:56:27 +00:00
fix formatting
This commit is contained in:
60
flake.nix
60
flake.nix
@@ -17,32 +17,40 @@
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {nixpkgs, home-manager, ags, nixvim, ...}:
|
||||
let
|
||||
username = "theaninova";
|
||||
system = "x86_64-linux";
|
||||
stateVersion = "23.11";
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
homeDirPrefix = if pkgs.stdenv.hostPlatform.isDarwin then "/Users" else "/home";
|
||||
homeDirectory = "${homeDirPrefix}/${username}";
|
||||
|
||||
home = (import ./home.nix {
|
||||
inherit homeDirectory pkgs stateVersion system username;
|
||||
});
|
||||
in {
|
||||
homeConfigurations.theaninova = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
ags,
|
||||
nixvim,
|
||||
...
|
||||
}: let
|
||||
username = "theaninova";
|
||||
system = "x86_64-linux";
|
||||
stateVersion = "23.11";
|
||||
|
||||
modules = [
|
||||
ags.homeManagerModules.default
|
||||
home
|
||||
nixvim.homeManagerModules.nixvim
|
||||
];
|
||||
};
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
homeDirPrefix =
|
||||
if pkgs.stdenv.hostPlatform.isDarwin
|
||||
then "/Users"
|
||||
else "/home";
|
||||
homeDirectory = "${homeDirPrefix}/${username}";
|
||||
|
||||
home = import ./home.nix {
|
||||
inherit homeDirectory pkgs stateVersion system username;
|
||||
};
|
||||
in {
|
||||
homeConfigurations.theaninova = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
|
||||
modules = [
|
||||
ags.homeManagerModules.default
|
||||
home
|
||||
nixvim.homeManagerModules.nixvim
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user