mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref: nixos config (removed home.nix)
This commit is contained in:
parent
95ec62ac53
commit
3901845111
4 changed files with 117 additions and 152 deletions
|
|
@ -2,39 +2,28 @@
|
|||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
||||
nixunstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
home-manager.url = "github:nix-community/home-manager/release-23.11";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
nixunstable,
|
||||
home-manager,
|
||||
...
|
||||
}: let
|
||||
inherit (nixpkgs) lib;
|
||||
withSystem = (
|
||||
system: hostname: (lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit nixpkgs;
|
||||
inherit nixunstable;
|
||||
inherit system;
|
||||
inherit hostname;
|
||||
};
|
||||
modules = [./hosts/thinkpad/configuration.nix];
|
||||
})
|
||||
);
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
thinkpad = let
|
||||
system = "aarch64-linux";
|
||||
unstable = import nixunstable {inherit system;};
|
||||
in
|
||||
lib.nixosSystem {
|
||||
specialArgs = {inherit system;};
|
||||
modules = [
|
||||
./hosts/thinkpad/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.leana = import ./home;
|
||||
extraSpecialArgs = {inherit unstable;};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
thinkpad = withSystem "aarch64-linux" "nixie";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue