macos shit
This commit is contained in:
21
flake.lock
generated
21
flake.lock
generated
@@ -265,6 +265,26 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-darwin": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1760721282,
|
||||
"narHash": "sha256-aAHphQbU9t/b2RRy2Eb8oMv+I08isXv2KUGFAFn7nCo=",
|
||||
"owner": "LnL7",
|
||||
"repo": "nix-darwin",
|
||||
"rev": "c3211fcd0c56c11ff110d346d4487b18f7365168",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "LnL7",
|
||||
"repo": "nix-darwin",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1748162331,
|
||||
@@ -365,6 +385,7 @@
|
||||
"autoaspm": "autoaspm",
|
||||
"copyparty": "copyparty",
|
||||
"home-manager": "home-manager",
|
||||
"nix-darwin": "nix-darwin",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||
"nvf": "nvf",
|
||||
|
||||
26
flake.nix
26
flake.nix
@@ -6,6 +6,10 @@
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-25.05";
|
||||
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
||||
nix-darwin = {
|
||||
url = "github:LnL7/nix-darwin";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-25.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
@@ -31,8 +35,13 @@
|
||||
};
|
||||
copyparty.url = "github:9001/copyparty";
|
||||
};
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, ... }@inputs:
|
||||
let
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
nixpkgs-unstable,
|
||||
nix-darwin,
|
||||
...
|
||||
} @ inputs: let
|
||||
systems = {
|
||||
x86_64 = "x86_64-linux";
|
||||
arm64 = "aarch64-linux";
|
||||
@@ -40,8 +49,7 @@
|
||||
};
|
||||
stable_pkgs = builtins.mapAttrs (k: v: import nixpkgs {system = v;}) systems;
|
||||
unstable_pkgs = builtins.mapAttrs (k: v: import nixpkgs-unstable {system = v;}) systems;
|
||||
in
|
||||
{
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
snowbelle = nixpkgs.lib.nixosSystem {
|
||||
system = systems.x86_64;
|
||||
@@ -60,5 +68,15 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
darwinConfigurations = {
|
||||
CEN-IT-07 = nix-darwin.lib.darwinSystem {
|
||||
system = systems.darwin;
|
||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
||||
modules = [
|
||||
./hosts/cen-it-07/configuration.nix
|
||||
inputs.home-manager.darwinModules.default
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
16
users/blake/dots/hyprland/default.nix
Normal file
16
users/blake/dots/hyprland/default.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [];
|
||||
|
||||
wayland.windowManager.hyprland = if pkgs.system == "x86_64-darwin" then {} else {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
#
|
||||
home.sessionVariables = if pkgs.system == "x86_64-darwin" then {} else {
|
||||
};
|
||||
|
||||
}
|
||||
@@ -12,8 +12,8 @@
|
||||
homeDirectory = "/home/blake";
|
||||
};
|
||||
home_darwin = {
|
||||
username = "bhelderman";
|
||||
homeDirectory = "/Users/bhelderman";
|
||||
username = "bdhelderman";
|
||||
homeDirectory = "/Users/bdhelderman";
|
||||
};
|
||||
in
|
||||
{
|
||||
@@ -28,7 +28,7 @@ in
|
||||
./dots/xdg
|
||||
];
|
||||
|
||||
# general config
|
||||
# set home manager config based on system type
|
||||
home = (if pkgs.system == "x86_64-darwin" then home_darwin else home_linux) // {
|
||||
# cross party general packages here : )
|
||||
stateVersion = "25.05";
|
||||
|
||||
Reference in New Issue
Block a user