mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
79 lines
2.4 KiB
Nix
79 lines
2.4 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
disko = {
|
|
url = "github:nix-community/disko";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nix-index-database = {
|
|
url = "github:Mic92/nix-index-database";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nix-vscode-extensions = {
|
|
url = "github:nix-community/nix-vscode-extensions";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hyprlock = {
|
|
url = "github:hyprwm/Hyprlock";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hypridle = {
|
|
url = "github:hyprwm/Hypridle";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {nixpkgs, ...} @ inputs: let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
nixosConfigurations = {
|
|
north = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs;};
|
|
modules = [
|
|
./hosts/north
|
|
"${./.}/users/seb/@north.nix"
|
|
];
|
|
};
|
|
inspiron = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs;};
|
|
modules = [
|
|
./hosts/inspiron
|
|
"${./.}/users/seb/@inspiron.nix"
|
|
];
|
|
};
|
|
};
|
|
|
|
formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra.overrideAttrs {
|
|
passthru.tests.version = {};
|
|
postPatch = ''
|
|
substituteInPlace src/alejandra/src/builder.rs \
|
|
--replace '2 * build_ctx.indentation' '4 * build_ctx.indentation'
|
|
substituteInPlace src/alejandra/src/rules/string.rs \
|
|
--replace 'format!(" {}", line)' 'format!(" {}", line)'
|
|
substituteInPlace src/alejandra_cli/src/cli.rs \
|
|
--replace 'eprint!("{}", random_ad());' ""
|
|
rm -r src/alejandra/tests
|
|
'';
|
|
};
|
|
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
packages = [pkgs.sops];
|
|
};
|
|
};
|
|
}
|