[tarro] Adds new config for tarro-mbp
This commit is contained in:
22
flake.lock
generated
22
flake.lock
generated
@@ -424,6 +424,27 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-darwin": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1738277753,
|
||||||
|
"narHash": "sha256-iyFcCOk0mmDiv4ut9mBEuMxMZIym3++0qN1rQBg8FW0=",
|
||||||
|
"owner": "LnL7",
|
||||||
|
"repo": "nix-darwin",
|
||||||
|
"rev": "49b807fa7c37568d7fbe2aeaafb9255c185412f9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "LnL7",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "nix-darwin",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix-filter": {
|
"nix-filter": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1693833173,
|
"lastModified": 1693833173,
|
||||||
@@ -483,6 +504,7 @@
|
|||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"hy3": "hy3",
|
"hy3": "hy3",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
|
"nix-darwin": "nix-darwin",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"split-monitor-workspaces": "split-monitor-workspaces"
|
"split-monitor-workspaces": "split-monitor-workspaces"
|
||||||
}
|
}
|
||||||
|
|||||||
11
flake.nix
11
flake.nix
@@ -19,6 +19,10 @@
|
|||||||
url = "github:Duckonaut/split-monitor-workspaces";
|
url = "github:Duckonaut/split-monitor-workspaces";
|
||||||
inputs.hyprland.follows = "hyprland";
|
inputs.hyprland.follows = "hyprland";
|
||||||
};
|
};
|
||||||
|
nix-darwin = {
|
||||||
|
url = "github:LnL7/nix-darwin/master";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs: {
|
outputs = { self, nixpkgs, ... }@inputs: {
|
||||||
@@ -29,5 +33,12 @@
|
|||||||
inherit nixpkgs;
|
inherit nixpkgs;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
darwinConfigurations = {
|
||||||
|
DGVGYQLQP5 = (import ./system/hosts/tarro-mbp) {
|
||||||
|
inherit inputs;
|
||||||
|
inherit self;
|
||||||
|
inherit nixpkgs;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
29
system/hosts/tarro-mbp/configuration.nix
Normal file
29
system/hosts/tarro-mbp/configuration.nix
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{ config, pkgs, inputs, ... }:
|
||||||
|
{
|
||||||
|
# List packages installed in system profile. To search by name, run:
|
||||||
|
# $ nix-env -qaP | grep wget
|
||||||
|
environment.systemPackages =
|
||||||
|
[ pkgs.vim
|
||||||
|
];
|
||||||
|
|
||||||
|
# Necessary for using flakes on this system.
|
||||||
|
nix.settings.experimental-features = "nix-command flakes";
|
||||||
|
|
||||||
|
# Enable alternative shell support in nix-darwin.
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
# Set Git commit hash for darwin-version.
|
||||||
|
system.configurationRevision = inputs.self.rev or inputs.self.dirtyRev or null;
|
||||||
|
|
||||||
|
# Used for backwards compatibility, please read the changelog before changing.
|
||||||
|
# $ darwin-rebuild changelog
|
||||||
|
system.stateVersion = 6;
|
||||||
|
|
||||||
|
# The platform the configuration will be used on.
|
||||||
|
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||||
|
|
||||||
|
users.users.drew = {
|
||||||
|
name = "drew";
|
||||||
|
home = "/Users/drew";
|
||||||
|
};
|
||||||
|
}
|
||||||
16
system/hosts/tarro-mbp/default.nix
Normal file
16
system/hosts/tarro-mbp/default.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ inputs, self, ... }:
|
||||||
|
inputs.nix-darwin.lib.darwinSystem {
|
||||||
|
modules = [
|
||||||
|
./configuration.nix
|
||||||
|
inputs.home-manager.darwinModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.users.drew = import ./drew.nix;
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||||
|
}
|
||||||
|
];
|
||||||
|
specialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
inherit self;
|
||||||
|
};
|
||||||
|
}
|
||||||
18
system/hosts/tarro-mbp/drew.nix
Normal file
18
system/hosts/tarro-mbp/drew.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{ pkgs, self, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../../../home-manager/features/shell.nix
|
||||||
|
../../../home-manager/features/terminal.nix
|
||||||
|
../../../home-manager/features/neovim.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home.username = "drew";
|
||||||
|
home.homeDirectory = "/Users/drew";
|
||||||
|
|
||||||
|
nix.settings.experimental-features = ["flakes" "nix-command"];
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
];
|
||||||
|
|
||||||
|
home.stateVersion = "24.11";
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user