blah
This commit is contained in:
parent
f55323d926
commit
3b1475fefc
@ -16,6 +16,7 @@
|
||||
},
|
||||
"original": {
|
||||
"owner": "lnl7",
|
||||
"ref": "master",
|
||||
"repo": "nix-darwin",
|
||||
"type": "github"
|
||||
}
|
||||
@ -45,13 +46,13 @@
|
||||
"locked": {
|
||||
"lastModified": 1672441599,
|
||||
"narHash": "sha256-5s/aa/0cpw6MNXQSiUedDnnMVleL/WThL8Q8jYNcc+g=",
|
||||
"owner": "NixOS",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "0c5a734cdeadc39d253018ad0f83fb77eac7ab08",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"owner": "nixos",
|
||||
"ref": "nixpkgs-22.05-darwin",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
|
13
flake.nix
13
flake.nix
@ -1,19 +1,20 @@
|
||||
{
|
||||
description = "My first nix flake";
|
||||
description = "Tyrel Nix";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-22.05-darwin";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-22.05-darwin";
|
||||
darwin.url = "github:lnl7/nix-darwin/master";
|
||||
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
# nix will normally use the nixpkgs defined in home-managers inputs, we only want one copy of nixpkgs though
|
||||
darwin.url = "github:lnl7/nix-darwin";
|
||||
darwin.inputs.nixpkgs.follows = "nixpkgs"; # ...
|
||||
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, darwin }: {
|
||||
darwinConfigurations."ts-tl-mbp" = darwin.lib.darwinSystem {
|
||||
# you can have multiple darwinConfigurations per flake, one per hostname
|
||||
|
||||
system = "x86_64-darwin";
|
||||
modules = [ home-manager.darwinModules.home-manager ./hosts/ts-tl-mbp/default.nix ]; # will be important later
|
||||
};
|
||||
|
@ -1,13 +1,12 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
|
||||
# Make sure the nix daemon always runs
|
||||
services.nix-daemon.enable = true;
|
||||
programs.zsh.enable = true;
|
||||
system.defaults.dock.autohide = true;
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.tyrel = { pkgs, ... }: {
|
||||
programs.zsh.enable = true;
|
||||
system.defaults.dock.autohide = true;
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.tyrel = { pkgs, ... }: {
|
||||
home.stateVersion = "22.05";
|
||||
programs.tmux = { # my tmux configuration, for example
|
||||
enable = true;
|
||||
@ -23,8 +22,8 @@ home-manager.users.tyrel = { pkgs, ... }: {
|
||||
bind-key -n C-a send-prefix
|
||||
'';
|
||||
};
|
||||
};
|
||||
homebrew = {
|
||||
};
|
||||
homebrew = {
|
||||
enable = true;
|
||||
autoUpdate = true;
|
||||
# updates homebrew packages on activation,
|
||||
@ -33,6 +32,6 @@ homebrew = {
|
||||
"alfred"
|
||||
"discord"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user