Compare commits
No commits in common. "beec57299c66a3ba4a4c22470e3390bf08de367d" and "817e85b1be7b33acf0f5e7c5196d430fe5bf40a9" have entirely different histories.
beec57299c
...
817e85b1be
7 changed files with 7 additions and 221 deletions
92
flake.lock
generated
92
flake.lock
generated
|
|
@ -1,22 +1,5 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"brew-src": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1781226006,
|
|
||||||
"narHash": "sha256-w4ZTuOnhYiDxjaynrMTASzp802QblBWmo3wpB8wVN4Y=",
|
|
||||||
"owner": "Homebrew",
|
|
||||||
"repo": "brew",
|
|
||||||
"rev": "109191be4988470b51a60a5ef1998520aa24c01b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "Homebrew",
|
|
||||||
"ref": "6.0.1",
|
|
||||||
"repo": "brew",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
|
|
@ -38,59 +21,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1781981105,
|
|
||||||
"narHash": "sha256-/1nNBbA7PrSQpTc9Qazkhl4kIPg+TNl0CjxS3UQJKlw=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"rev": "7bfff44b465909f69a442701293bc0badcf476dc",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"ref": "release-26.05",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"homebrew-cask": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1782189722,
|
|
||||||
"narHash": "sha256-QcITIKAntdkgJVSOuVlJKqx4+KHBdJ70WgqjBfTimuI=",
|
|
||||||
"owner": "homebrew",
|
|
||||||
"repo": "homebrew-cask",
|
|
||||||
"rev": "3fc765b52036afb96959548c99ae252af80feead",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "homebrew",
|
|
||||||
"repo": "homebrew-cask",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"homebrew-core": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1782188147,
|
|
||||||
"narHash": "sha256-nMskIQImTBCY+4912nbs7jymt1cgdKcS34EQ21sldn4=",
|
|
||||||
"owner": "homebrew",
|
|
||||||
"repo": "homebrew-core",
|
|
||||||
"rev": "915bce047398f0401932c83e1dad1b827ffea5de",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "homebrew",
|
|
||||||
"repo": "homebrew-core",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nix-darwin": {
|
"nix-darwin": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -112,24 +42,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nix-homebrew": {
|
|
||||||
"inputs": {
|
|
||||||
"brew-src": "brew-src"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1781389246,
|
|
||||||
"narHash": "sha256-ORqLAo/hoJdsZC7UPAuEHev6S0+XIqKEC7vjo5prz1k=",
|
|
||||||
"owner": "zhaofengli",
|
|
||||||
"repo": "nix-homebrew",
|
|
||||||
"rev": "de7953a08ed4bb9245be043e468561c17b89130d",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "zhaofengli",
|
|
||||||
"repo": "nix-homebrew",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781808408,
|
"lastModified": 1781808408,
|
||||||
|
|
@ -169,11 +81,7 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
|
||||||
"homebrew-cask": "homebrew-cask",
|
|
||||||
"homebrew-core": "homebrew-core",
|
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nix-homebrew": "nix-homebrew",
|
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
"secrets": "secrets",
|
"secrets": "secrets",
|
||||||
|
|
|
||||||
12
flake.nix
12
flake.nix
|
|
@ -14,16 +14,8 @@
|
||||||
nix-homebrew = {
|
nix-homebrew = {
|
||||||
url = "github:zhaofengli/nix-homebrew";
|
url = "github:zhaofengli/nix-homebrew";
|
||||||
};
|
};
|
||||||
homebrew-core = {
|
|
||||||
url = "github:homebrew/homebrew-core";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
homebrew-cask = {
|
|
||||||
url = "github:homebrew/homebrew-cask";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-26.05";
|
url = "github:nix-community/home-manager/master";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
sops-nix = {
|
sops-nix = {
|
||||||
|
|
@ -83,7 +75,7 @@
|
||||||
modules = [
|
modules = [
|
||||||
# ./hosts/base.nix
|
# ./hosts/base.nix
|
||||||
./hosts/artemis
|
./hosts/artemis
|
||||||
./modules/home
|
homeConf
|
||||||
];
|
];
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,14 @@
|
||||||
{ pkgs, lib, inputs, ... }:
|
{ pkgs, lib, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
./homebrew.nix
|
|
||||||
./macos.nix
|
|
||||||
];
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vscodium
|
vscodium
|
||||||
git
|
git
|
||||||
];
|
];
|
||||||
|
|
||||||
security.pam.services.sudo_local.touchIdAuth = true;
|
security.pam.services.sudo_local.touchIdAuth = true;
|
||||||
ids.gids.nixbld = 350;
|
ids.gids.nixbld = 350;
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
environment.etc."nix-darwin".source = "/Users/nyxerinys/nix-config";
|
environment.etc."nix-darwin".source = "/Users/nyxerinys/nix-config";
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
nix.settings.extra-platforms = [ "x86_64-darwin" "aarch64-darwin" ];
|
|
||||||
|
|
||||||
# Necessary for using flakes on this system.
|
# Necessary for using flakes on this system.
|
||||||
nix.settings.experimental-features = "nix-command flakes";
|
nix.settings.experimental-features = "nix-command flakes";
|
||||||
|
|
@ -26,7 +19,7 @@
|
||||||
# The platform the configuration will be used on.
|
# The platform the configuration will be used on.
|
||||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||||
users.users.nyxerinys = {
|
users.users.nyxerinys = {
|
||||||
name = "nyxerinys";
|
name = "Nyx";
|
||||||
home = "/Users/nyxerinys";
|
home = "/Users/nyxerinys";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -1,48 +0,0 @@
|
||||||
{ inputs, ... }:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
inputs.nix-homebrew.darwinModules.nix-homebrew
|
|
||||||
];
|
|
||||||
nix-homebrew = {
|
|
||||||
# Install Homebrew under the default prefix
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
# Apple Silicon Only: Also install Homebrew under the default Intel prefix for Rosetta 2
|
|
||||||
enableRosetta = true;
|
|
||||||
|
|
||||||
# User owning the Homebrew prefix
|
|
||||||
user = "nyxerinys";
|
|
||||||
|
|
||||||
# Optional: Declarative tap management
|
|
||||||
taps = {
|
|
||||||
"homebrew/homebrew-core" = inputs.homebrew-core;
|
|
||||||
"homebrew/homebrew-cask" = inputs.homebrew-cask;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Optional: Enable fully-declarative tap management
|
|
||||||
#
|
|
||||||
# With mutableTaps disabled, taps can no longer be added imperatively with `brew tap`.
|
|
||||||
mutableTaps = false;
|
|
||||||
|
|
||||||
# Optional: Declarative Homebrew tap trust entries.
|
|
||||||
#
|
|
||||||
# Note: The trust entries are _not_ removed if you remove them from those lists!
|
|
||||||
# Use the `brew untrust` command to remove a trust entry.
|
|
||||||
trust = {
|
|
||||||
formulae = [ ];
|
|
||||||
casks = [ ];
|
|
||||||
commands = [ ];
|
|
||||||
taps = [ ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
homebrew = {
|
|
||||||
enable = true;
|
|
||||||
onActivation.cleanup = "zap"; # Cleans packages not defined here
|
|
||||||
|
|
||||||
# Use Mac Casks instead of standard Nix packages for GUI apps
|
|
||||||
casks = [
|
|
||||||
"steam" # Native/Rosetta 2 macOS Steam Client
|
|
||||||
"discord"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
system = {
|
|
||||||
primaryUser = "nyxerinys";
|
|
||||||
defaults = {
|
|
||||||
dock = {
|
|
||||||
autohide = true;
|
|
||||||
minimize-to-application = true;
|
|
||||||
mru-spaces = false;
|
|
||||||
mineffect = "scale";
|
|
||||||
show-recents = false;
|
|
||||||
};
|
|
||||||
controlcenter = {
|
|
||||||
BatteryShowPercentage = true;
|
|
||||||
};
|
|
||||||
finder = {
|
|
||||||
_FXShowPosixPathInTitle = true;
|
|
||||||
_FXSortFoldersFirst = true;
|
|
||||||
_FXEnableColumnAutoSizing = true;
|
|
||||||
AppleShowAllExtensions = true;
|
|
||||||
AppleShowAllFiles = true;
|
|
||||||
FXEnableExtensionChangeWarning = false;
|
|
||||||
FXPreferredViewStyle = "Nlsv";
|
|
||||||
FXDefaultSearchScope = "SCcf";
|
|
||||||
NewWindowTarget = "Home";
|
|
||||||
ShowExternalHardDrivesOnDesktop = false;
|
|
||||||
ShowHardDrivesOnDesktop = false;
|
|
||||||
ShowMountedServersOnDesktop = false;
|
|
||||||
ShowPathbar = true;
|
|
||||||
ShowStatusBar = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
{ inputs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
inputs.home-manager.darwinModules.home-manager
|
|
||||||
];
|
|
||||||
|
|
||||||
home-manager = {
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
users = {
|
|
||||||
"nyxerinys" = import ./nyxerinys;
|
|
||||||
};
|
|
||||||
extraSpecialArgs = { inherit inputs; };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +1,10 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Home Manager needs a bit of information about you and the
|
# Home Manager needs a bit of information about you and the
|
||||||
# paths it should manage.
|
# paths it should manage.
|
||||||
home.username = "nyxerinys";
|
home.username = "nyxerinys";
|
||||||
home.homeDirectory = (
|
home.homeDirectory = "/home/nyxerinys";
|
||||||
if pkgs.stdenv.isDarwin then
|
|
||||||
"/Users/nyxerinys"
|
|
||||||
else
|
|
||||||
"/home/nyxerinys"
|
|
||||||
);
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
prismlauncher
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
# This value determines the Home Manager release that your
|
# This value determines the Home Manager release that your
|
||||||
# configuration is compatible with. This helps avoid breakage
|
# configuration is compatible with. This helps avoid breakage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue