migrates dnsc-air
This commit is contained in:
parent
4e26d4b880
commit
25d3917db6
9 changed files with 142 additions and 2 deletions
|
|
@ -1,11 +1,17 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, ... }:
|
||||
let
|
||||
username = config.flake.globalConfig.username;
|
||||
fullname = config.flake.globalConfig.fullname;
|
||||
in
|
||||
{
|
||||
flake.modules.darwin.system =
|
||||
flake.modules.darwin.base =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
users.users.${username} = {
|
||||
home = "/Users/${username}";
|
||||
description = fullname;
|
||||
};
|
||||
|
||||
system = {
|
||||
primaryUser = username;
|
||||
stateVersion = 5;
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ let
|
|||
lazygit
|
||||
wget
|
||||
btop
|
||||
rsync
|
||||
];
|
||||
in
|
||||
{
|
||||
|
|
|
|||
56
modules/homebrew/default.nix
Normal file
56
modules/homebrew/default.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
username = config.flake.globalConfig.username;
|
||||
in
|
||||
{
|
||||
flake.modules.darwin.homebrew =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
nix-homebrew = {
|
||||
enable = true;
|
||||
user = username;
|
||||
autoMigrate = true;
|
||||
};
|
||||
|
||||
homebrew = {
|
||||
user = username;
|
||||
enable = true;
|
||||
|
||||
onActivation = {
|
||||
autoUpdate = true;
|
||||
upgrade = true;
|
||||
cleanup = "zap";
|
||||
};
|
||||
|
||||
brews = [
|
||||
"go"
|
||||
"mas"
|
||||
"yt-dlp"
|
||||
];
|
||||
|
||||
casks = [
|
||||
"font-victor-mono"
|
||||
"font-victor-mono-nerd-font"
|
||||
"vlc"
|
||||
"ghostty"
|
||||
"hiddenbar"
|
||||
"eurkey"
|
||||
"karabiner-elements"
|
||||
"caffeine"
|
||||
"raycast"
|
||||
"spotify"
|
||||
"keyboard-cowboy"
|
||||
"krita"
|
||||
"darktable"
|
||||
];
|
||||
|
||||
masApps = {
|
||||
Bitwarden = 1352778147;
|
||||
"Yesterday For Old Reddit" = 1603279883;
|
||||
"Final Cut Pro" = 424389933;
|
||||
Wireguard = 1451685025;
|
||||
Pages = 409201541;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
32
modules/hosts/dnsc-air/default.nix
Normal file
32
modules/hosts/dnsc-air/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ inputs, config, ... }:
|
||||
let
|
||||
hostname = "dnsc-air";
|
||||
in
|
||||
{
|
||||
flake.darwinConfigurations.${hostname} = inputs.nix-darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
modules = with config.flake.modules.darwin; [
|
||||
inputs.nix-homebrew.darwinModules.nix-homebrew
|
||||
|
||||
base
|
||||
home-manager
|
||||
shell
|
||||
git
|
||||
ssh
|
||||
cli-tools
|
||||
nix
|
||||
neovim
|
||||
terminal
|
||||
browser
|
||||
|
||||
(
|
||||
{ ... }:
|
||||
{
|
||||
networking.hostName = hostname;
|
||||
networking.computerName = hostname;
|
||||
system.defaults.smb.NetBIOSName = hostname;
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -61,6 +61,10 @@
|
|||
flake.modules.homeManager.scrolling-desktop =
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
({ lib, pkgs, ... }: lib.mkIf pkgs.stdenv.isDarwin { })
|
||||
];
|
||||
|
||||
services.polkit-gnome.enable = true;
|
||||
services.mpris-proxy.enable = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
{
|
||||
programs.fish.enable = true;
|
||||
users.defaultUserShell = pkgs.fish;
|
||||
environment.shells = [ pkgs.fish ];
|
||||
|
||||
home-manager.sharedModules = [
|
||||
inputs.self.modules.homeManager.shell
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue