summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authors <lol>2025-02-21 17:10:50 +0700
committers <lol>2025-02-21 17:10:50 +0700
commit7758e10d8fe1095ee77643f7248d94ed4235834b (patch)
treec51292fcae6238b6388d55f6e7a702305a0cfcf6 /hosts
parentc0be55eb72fdad38de6e1c72a52b1500216c3043 (diff)
mac
Diffstat (limited to 'hosts')
-rw-r--r--hosts/base.nix3
-rw-r--r--hosts/darwin.nix2
-rw-r--r--hosts/mac/m1mba/configuration.nix12
-rw-r--r--hosts/mac/m1mba/default.nix4
-rw-r--r--hosts/mac/m1mba/mac.nix12
-rw-r--r--hosts/mac/m1mba/pkgs.nix69
-rw-r--r--hosts/mac/mac.nix19
-rw-r--r--hosts/pkgs.nix1
-rw-r--r--hosts/users.nix18
9 files changed, 80 insertions, 60 deletions
diff --git a/hosts/base.nix b/hosts/base.nix
index 96df7c4..aea25e9 100644
--- a/hosts/base.nix
+++ b/hosts/base.nix
@@ -1,11 +1,10 @@
{pkgs, ...}: {
# fucking linux vulnerability
- services.printing.enable = false;
# enable flakes
nix = {
gc = {
automatic = true;
- dates = "weekly";
+ interval = {Weekday = 0; Hour = 20; Minute = 0;};
options = "--delete-older-than 7d";
};
# package = pkgs.nixFlakes;
diff --git a/hosts/darwin.nix b/hosts/darwin.nix
index 909322b..78de32f 100644
--- a/hosts/darwin.nix
+++ b/hosts/darwin.nix
@@ -1,6 +1,6 @@
inputs: let
mkDarwinSystem = system: path:
- inputs.nixpkgs.lib.darwinSystem {
+ inputs.nix-darwin.lib.darwinSystem {
inherit system;
specialArgs = {inherit inputs;};
modules = import (./. + "/${path}") inputs;
diff --git a/hosts/mac/m1mba/configuration.nix b/hosts/mac/m1mba/configuration.nix
index 373f781..8809af7 100644
--- a/hosts/mac/m1mba/configuration.nix
+++ b/hosts/mac/m1mba/configuration.nix
@@ -1,18 +1,10 @@
{...}: {
imports = [
../../base.nix
+ ../../users.nix
../mac.nix
- ./users.nix
./pkgs.nix
+
];
- # Auto upgrade nix package and the daemon service.
- services.nix-daemon.enable = true;
- # nix.package = pkgs.nix;
- # Used for backwards compatibility, please read the changelog before changing.
- # $ darwin-rebuild changelog
- system.stateVersion = 4;
-
- # The platform the configuration will be used on.
- nixpkgs.hostPlatform = "aarch64-darwin";
}
diff --git a/hosts/mac/m1mba/default.nix b/hosts/mac/m1mba/default.nix
new file mode 100644
index 0000000..3370bb0
--- /dev/null
+++ b/hosts/mac/m1mba/default.nix
@@ -0,0 +1,4 @@
+inputs: [
+ #inputs.kmonad.nixosModules.default
+ ./configuration.nix
+]
diff --git a/hosts/mac/m1mba/mac.nix b/hosts/mac/m1mba/mac.nix
deleted file mode 100644
index dba3035..0000000
--- a/hosts/mac/m1mba/mac.nix
+++ /dev/null
@@ -1,12 +0,0 @@
-{ pkgs, ... }:
-{
- fonts.fontDir.enable = true;
- fonts.fonts = with pkgs; [
- recursive
- (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
- ];
- system.keyboard = {
- enableKeyMapping = true;
- remapCapsLockToEscape = true;
- };
-}
diff --git a/hosts/mac/m1mba/pkgs.nix b/hosts/mac/m1mba/pkgs.nix
index dffcd66..f7ac5f4 100644
--- a/hosts/mac/m1mba/pkgs.nix
+++ b/hosts/mac/m1mba/pkgs.nix
@@ -1,28 +1,34 @@
-{ pkgs, kmonad, unstablePkgs, ...}:
+{ pkgs, ...}:
{
# custom
# y.kmonad.enable = true;
- environment.systemPackages = with unstablePkgs; [
- # custom
- pkgs.overlays.yabai
- #unfree
-# slack
-# spotify
-# corefonts
-# symbola
- #gui
- alacritty
- vscodium
- tdesktop
- # terminal
- #
- vim
- neovim
- helix
- # ---
+ environment.systemPackages = with pkgs; [
+ # dont work on mac
+ #nethogs
+ #networking
+ # images
+ #sxiv
+ # audio debug
+ #alsa-firmware
+ # wine
+ #wineWowPackages.staging
+ #wineWowPackages.waylandFull
+ #appimage-run
+ # disk automount
+ #udiskie
+ #ghostty
+ # /mac
+ minio
+ minio-client
+ curlFull
wget
+ deluge
+ autossh
+ sshfs
+ #
htop
+ rlwrap
bat
gitAndTools.gitFull
lazygit
@@ -41,10 +47,10 @@
jq
vifm
nnn
- # neovim asks for a c compiler just to run nvim-treesitter commands. let's see
fzf
killall
tree
+ qrcp
deluge
ncdu
edir
@@ -54,15 +60,32 @@
# direnv
direnv
nix-direnv
- # scraping
- python310Packages.yt-dlp
+ # nix lsp
+ nil
+ alejandra
+ # markdown lsp
+ marksman
+ #crypto
+ electrum
+ # mac only
+ # custom
+ #pkgs.overlays.yabai
+ # terminals
+ alacritty
+ # files
+ ranger
+ zip
+ unzip
+ # direnv
+ direnv
+ nix-direnv
# code
+ superhtml
nodejs
node2nix
zig
gcc
gnumake
- sqlite
];
}
diff --git a/hosts/mac/mac.nix b/hosts/mac/mac.nix
index dba3035..2e55b01 100644
--- a/hosts/mac/mac.nix
+++ b/hosts/mac/mac.nix
@@ -1,12 +1,23 @@
-{ pkgs, ... }:
+{ self, pkgs, ... }:
{
- fonts.fontDir.enable = true;
- fonts.fonts = with pkgs; [
+ fonts.packages = with pkgs; [
recursive
- (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
+ pkgs.nerd-fonts.droid-sans-mono
+ # (pkgs.nerd-fonts.override { fonts = [ "JetBrainsMono" ]; })
];
+ #system.configurationRevision = self.rev or self.dirtyRev or null;
system.keyboard = {
enableKeyMapping = true;
remapCapsLockToEscape = true;
};
+ #pkgs = import nixpkgs {
+ # overlays = builtins.attrValues self.overlays;
+ # system = "aarch64-darwin";
+ #};
+ nixpkgs.hostPlatform = "aarch64-darwin";
+ system.stateVersion = 6;
+ ids.gids.nixbld = 30000;
+ #services.nix-daemon.enable = true;
+
+
}
diff --git a/hosts/pkgs.nix b/hosts/pkgs.nix
index 953b7fd..a636215 100644
--- a/hosts/pkgs.nix
+++ b/hosts/pkgs.nix
@@ -76,7 +76,6 @@
# yacreader
nethogs
superhtml
- sshfs
sxiv
# ai stuff!
diff --git a/hosts/users.nix b/hosts/users.nix
index 3572fbc..a32407c 100644
--- a/hosts/users.nix
+++ b/hosts/users.nix
@@ -1,6 +1,7 @@
{
config,
pkgs,
+ lib,
...
}: let
shellAliases = {
@@ -33,9 +34,14 @@ in {
users = {
users = {
y = {
- group = "users";
+ createHome = true;
+ home = "/home/y";
+ shell = pkgs.fish;
+ } // (if !pkgs.stdenv.isDarwin then {
+ isSystemUser = false;
isNormalUser = true;
- extraGroups = [
+ group = "users";
+ extraGroups = (!pkgs.stdenv.isDarwin) [
"systemd-journal"
"wheel"
"networkmanager"
@@ -46,11 +52,9 @@ in {
"uinput"
"jellyfin"
];
- createHome = true;
- home = "/home/y";
- isSystemUser = false;
- shell = pkgs.fish;
- };
+ } else {});
};
};
}
+
+