Removed nixos / linux bits
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
description = "Starter Configuration with secrets (removed) for MacOS and NixOS";
|
||||
description = "Starter configuration for macOS with nix-darwin";
|
||||
inputs = {
|
||||
nixpkgs = {
|
||||
url = "github:nixos/nixpkgs//nixpkgs-26.05-darwin";
|
||||
@@ -36,10 +36,6 @@
|
||||
url = "github:homebrew/homebrew-cask";
|
||||
flake = false;
|
||||
};
|
||||
disko = {
|
||||
url = "github:nix-community/disko";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
@@ -69,7 +65,6 @@
|
||||
homebrew-cask,
|
||||
home-manager,
|
||||
nixpkgs,
|
||||
disko,
|
||||
nixd,
|
||||
sops-nix,
|
||||
nix-vscode-extensions,
|
||||
@@ -79,15 +74,11 @@
|
||||
}@inputs:
|
||||
let
|
||||
user = "olaf";
|
||||
linuxSystems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
];
|
||||
darwinSystems = [
|
||||
"aarch64-darwin"
|
||||
"x86_64-darwin"
|
||||
];
|
||||
forAllSystems = f: nixpkgs.lib.genAttrs (linuxSystems ++ darwinSystems) f;
|
||||
forAllSystems = f: nixpkgs.lib.genAttrs darwinSystems f;
|
||||
devShell =
|
||||
system:
|
||||
let
|
||||
@@ -121,11 +112,6 @@
|
||||
'')
|
||||
}/bin/${scriptName}";
|
||||
};
|
||||
mkLinuxApps = system: {
|
||||
"apply" = mkApp "apply" system;
|
||||
"build-switch" = mkApp "build-switch" system;
|
||||
"install" = mkApp "install" system;
|
||||
};
|
||||
mkDarwinApps = system: {
|
||||
"apply" = mkApp "apply" system;
|
||||
"build" = mkApp "build" system;
|
||||
@@ -135,8 +121,7 @@
|
||||
in
|
||||
{
|
||||
devShells = forAllSystems devShell;
|
||||
apps =
|
||||
nixpkgs.lib.genAttrs linuxSystems mkLinuxApps // nixpkgs.lib.genAttrs darwinSystems mkDarwinApps;
|
||||
apps = nixpkgs.lib.genAttrs darwinSystems mkDarwinApps;
|
||||
|
||||
darwinConfigurations = nixpkgs.lib.genAttrs darwinSystems (
|
||||
system:
|
||||
@@ -144,7 +129,6 @@
|
||||
inherit system;
|
||||
specialArgs = inputs;
|
||||
modules = [
|
||||
# sops-nix.nixosModules.sops
|
||||
home-manager.darwinModules.home-manager
|
||||
nix-homebrew.darwinModules.nix-homebrew
|
||||
# mac-app-util.darwinModules.default
|
||||
@@ -170,26 +154,5 @@
|
||||
];
|
||||
}
|
||||
);
|
||||
|
||||
nixosConfigurations = nixpkgs.lib.genAttrs linuxSystems (
|
||||
system:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = inputs;
|
||||
modules = [
|
||||
sops-nix.nixosModules.sops
|
||||
disko.nixosModules.disko
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.${user} = import ./modules/nixos/home-manager.nix;
|
||||
};
|
||||
}
|
||||
./hosts/nixos
|
||||
];
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user