87 lines
2.0 KiB
Nix
87 lines
2.0 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-26.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
noctalia = {
|
|
url = "github:noctalia-dev/noctalia";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
outputs =
|
|
inputs@{
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
noctalia,
|
|
...
|
|
}:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [
|
|
(final: prev: {
|
|
bitwarden-desktop = prev.bitwarden-desktop // {
|
|
electron_39 = final.electron_39-bin;
|
|
};
|
|
})
|
|
];
|
|
config = {
|
|
allowUnfree = true;
|
|
allowUnfreePredicate = _: true;
|
|
permittedInsecurePackages = [ "electron-39.8.10" ];
|
|
};
|
|
};
|
|
stateVersion = "26.05";
|
|
username = "stobbsm";
|
|
laptop = "demilich";
|
|
system = "x86_64-linux";
|
|
email = "matthew@stobbs.ca";
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
${laptop} = nixpkgs.lib.nixosSystem {
|
|
specialArgs =
|
|
let
|
|
hostname = "${laptop}";
|
|
in
|
|
{
|
|
inherit
|
|
inputs
|
|
self
|
|
username
|
|
system
|
|
stateVersion
|
|
email
|
|
hostname
|
|
;
|
|
};
|
|
modules = [ ./${laptop}/configuration.nix ];
|
|
};
|
|
};
|
|
homeConfigurations = {
|
|
"${username}@${laptop}" = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
modules = [ ./${laptop}/home.nix ];
|
|
extraSpecialArgs =
|
|
let
|
|
hostname = "${laptop}";
|
|
in
|
|
{
|
|
inherit
|
|
self
|
|
inputs
|
|
username
|
|
hostname
|
|
system
|
|
stateVersion
|
|
email
|
|
;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|