This commit is contained in:
mjallen18
2024-08-27 19:42:07 -05:00
parent 6e0a996187
commit 64a228fd40
5 changed files with 157 additions and 103 deletions

126
flake.lock generated
View File

@@ -53,11 +53,11 @@
"yafas": "yafas" "yafas": "yafas"
}, },
"locked": { "locked": {
"lastModified": 1724696661, "lastModified": 1724760873,
"narHash": "sha256-tnT2qpwWAUEIdDZ8uhMP6zE+fFgjjWxCzvJ5u3WaASU=", "narHash": "sha256-pWFGeMQsnj3TpHG/BvOg5Qt5smgupDPeHmsd/ZH+DPg=",
"owner": "chaotic-cx", "owner": "chaotic-cx",
"repo": "nyx", "repo": "nyx",
"rev": "e327b184c7b62b183fc9dd68c43b3e26a1469f35", "rev": "f4510aa41ad74a3caa96365defbc356ab94e4521",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -92,11 +92,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1724636144, "lastModified": 1724727194,
"narHash": "sha256-yKpqZ6D8BP/D113KC1y5R/QAv9uy8SIRZToAZQDfhkI=", "narHash": "sha256-1qfV4NTz3SnuVAat9SfXzu2Jdu5156ZwODOeSZpF6xk=",
"owner": "lilyinstarlight", "owner": "lilyinstarlight",
"repo": "nixos-cosmic", "repo": "nixos-cosmic",
"rev": "a6292140f1813e97d0cd0d2242685f9007b1b5d7", "rev": "1b1bdf467e6f638889ea6a5f30e8d6182a7a16e3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -135,11 +135,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1724394478, "lastModified": 1724740262,
"narHash": "sha256-JSiv2uwI4UJo/4pxt4255BfzWCiEberJmBC6pCxnzas=", "narHash": "sha256-cpFasbzOTlwLi4fNas6hDznVUdCJn/lMLxi7MAMG6hg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "2e7bcdc4ef73aa56abd2f970e5a8b9c0cc87e614", "rev": "703efdd9b5c6a7d5824afa348a24fbbf8ff226be",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -198,6 +198,21 @@
}, },
"flake-compat_4": { "flake-compat_4": {
"flake": false, "flake": false,
"locked": {
"lastModified": 1696426674,
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-compat_5": {
"locked": { "locked": {
"lastModified": 1717312683, "lastModified": 1717312683,
"narHash": "sha256-FrlieJH50AuvagamEvWMIE6D2OAnERuDboFDYAED/dE=", "narHash": "sha256-FrlieJH50AuvagamEvWMIE6D2OAnERuDboFDYAED/dE=",
@@ -331,11 +346,11 @@
"nixpkgs-stable": "nixpkgs-stable_2" "nixpkgs-stable": "nixpkgs-stable_2"
}, },
"locked": { "locked": {
"lastModified": 1724440431, "lastModified": 1724763886,
"narHash": "sha256-9etXEOUtzeMgqg1u0wp+EdwG7RpmrAZ2yX516bMj2aE=", "narHash": "sha256-SzBtZs5z+YGM50oyt67R78qLhxG/wG5/SlVRsCF5kRc=",
"owner": "cachix", "owner": "cachix",
"repo": "git-hooks.nix", "repo": "git-hooks.nix",
"rev": "c8a54057aae480c56e28ef3e14e4960628ac495b", "rev": "1cd12de659fab215624c630c37d1c62aa2b7824e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -395,11 +410,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1724412708, "lastModified": 1724435763,
"narHash": "sha256-tLr1k+UZLVumyqXRU8E5lBtLjsvHSy8e2NiamfkjpYg=", "narHash": "sha256-UNky3lJNGQtUEXT2OY8gMxejakSWPTfWKvpFkpFlAfM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "b18f3ebc4029c22d437e3424014c8597a8b459a0", "rev": "c2cd2a52e02f1dfa1c88f95abeb89298d46023be",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -452,11 +467,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1724304322, "lastModified": 1724753550,
"narHash": "sha256-/nrlMDubg9oG2VNANRBxsas5RbcJtB6IIDPZC3yHLW8=", "narHash": "sha256-idw4NE/j9j6LVD7nrw7lWq77z2J6S5oCHjJdIaPyGvw=",
"owner": "Jovian-Experiments", "owner": "Jovian-Experiments",
"repo": "Jovian-NixOS", "repo": "Jovian-NixOS",
"rev": "924a18ea8df89a39166dd202f3e73cd022825768", "rev": "1bda3a989a5785e09d710452c817ee2699c89a3a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -610,10 +625,11 @@
"rust-overlay": "rust-overlay_3" "rust-overlay": "rust-overlay_3"
}, },
"locked": { "locked": {
"dirtyRev": "8a665fee82901878edaeb8ee120296a979db2dd2-dirty", "lastModified": 1724346840,
"dirtyShortRev": "8a665fe-dirty",
"lastModified": 1722469787,
"narHash": "sha256-nLaw2AFhDdBmbuWICe983Pbiq+GyNMPJMpSLWV6vVZA=", "narHash": "sha256-nLaw2AFhDdBmbuWICe983Pbiq+GyNMPJMpSLWV6vVZA=",
"ref": "refs/heads/main",
"rev": "77b99b63b125d85693934c83b04e1797cbf7afe7",
"revCount": 483,
"type": "git", "type": "git",
"url": "file:///home/matt/nixos-apple-silicon" "url": "file:///home/matt/nixos-apple-silicon"
}, },
@@ -809,22 +825,6 @@
} }
}, },
"nixpkgs_6": { "nixpkgs_6": {
"locked": {
"lastModified": 1724224976,
"narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c374d94f1536013ca8e92341b540eba4c22f9c62",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1721466660, "lastModified": 1721466660,
"narHash": "sha256-pFSxgSZqZ3h+5Du0KvEL1ccDZBwu4zvOil1zzrPNb3c=", "narHash": "sha256-pFSxgSZqZ3h+5Du0KvEL1ccDZBwu4zvOil1zzrPNb3c=",
@@ -914,11 +914,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1724345276, "lastModified": 1724666781,
"narHash": "sha256-MKvjkqVL/RJ3QXOA8tSUoK7HHXVGSB2AL+vKxU4Cf+c=", "narHash": "sha256-nOQDgjTDlWe0/+Ptf3o2p6UrznQFHnXBHRV1ZAsSpe8=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "9b724459b5900c2424f5069023d6596a8617284b", "rev": "095926ea6f008477a15a2ec6b0b8797e2e5be0e5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -936,11 +936,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1724552650, "lastModified": 1724638882,
"narHash": "sha256-u1xzgrdRTL0DQhjXMgmEvl75IrL8zGf0RS34IQJXxeU=", "narHash": "sha256-ap2jIQi/FuUHR6HCht6ASWhoz8EiB99XmI8Esot38VE=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "19fda552b69513df7b6aa5fcfd1412c0221467b1", "rev": "19b70f147b9c67a759e35824b241f1ed92e46694",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -990,46 +990,6 @@
"type": "github" "type": "github"
} }
}, },
"rust-overlay_4": {
"flake": false,
"locked": {
"lastModified": 1724293269,
"narHash": "sha256-x/XhOAszT/ejditCHUtGOjQcVg2AQhrC/QVew3i7kTI=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "6dc6d34a3a217457d7044dcce32b6d537480a6a1",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"slimlock": {
"inputs": {
"nixpkgs": [
"nix-inspect",
"nci",
"dream2nix",
"purescript-overlay",
"nixpkgs"
]
},
"locked": {
"lastModified": 1688610262,
"narHash": "sha256-Wg0ViDotFWGWqKIQzyYCgayeH8s4U1OZcTiWTQYdAp4=",
"owner": "thomashoneyman",
"repo": "slimlock",
"rev": "b5c6cdcaf636ebbebd0a1f32520929394493f1a6",
"type": "github"
},
"original": {
"owner": "thomashoneyman",
"repo": "slimlock",
"type": "github"
}
},
"sops-nix": { "sops-nix": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_6", "nixpkgs": "nixpkgs_6",

View File

@@ -2,39 +2,63 @@
# your system. Help is available in the configuration.nix(5) man page, on # your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ pkgs, ... }: { pkgs, lib, ... }:
let
plasma = false;
in
{ {
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
../default.nix ../default.nix
./gnome # ./gnome
# ./cosmic # ./cosmic
]; ];
hardware.asahi.enable = true; hardware.asahi = {
hardware.asahi.useExperimentalGPUDriver = true; enable = true;
hardware.asahi.peripheralFirmwareDirectory = ./firmware; useExperimentalGPUDriver = true;
hardware.asahi.setupAsahiSound = true; peripheralFirmwareDirectory = ./firmware;
setupAsahiSound = true;
};
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader = {
boot.loader.systemd-boot.configurationLimit = 3; systemd-boot = {
boot.loader.efi.canTouchEfiVariables = false; enable = true;
configurationLimit = 3;
};
efi.canTouchEfiVariables = lib.mkForce false;
};
apps.discover-wrapped.enable = lib.mkDefault true; apps.discover-wrapped.enable = lib.mkDefault false;
boot.extraModprobeConfig = '' boot.extraModprobeConfig = ''
options hid_apple iso_layout=0 options hid_apple iso_layout=0
''; '';
networking.hostName = "mac-nixos"; # Define your hostname. # Networking configs
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. networking = {
hostName = "mac-nixos";
# Enable Network Manager
networkmanager = {
enable = lib.mkDefault true;
wifi.powersave = lib.mkDefault false;
settings.connectivity.uri = lib.mkDefault "http://nmcheck.gnome.org/check_network_status.txt";
};
};
services = { services = {
displayManager.sddm.wayland.enable = lib.mkDefault true; displayManager.sddm.wayland.enable = lib.mkDefault plasma;
displayManager.sddm.enable = lib.mkDefault true; displayManager.sddm.enable = lib.mkDefault plasma;
desktopManager.plasma6.enable = lib.mkDefault true; desktopManager.plasma6.enable = lib.mkDefault plasma;
xserver = {
enable = true;
desktopManager.gnome.enable = lib.mkForce true;
displayManager.gdm.enable = lib.mkForce true;
};
# enable auto discovery of printers # enable auto discovery of printers
avahi = { avahi = {
@@ -44,7 +68,7 @@
}; };
# Enable Flatpak # Enable Flatpak
flatpak.enable = lib.mkDefault true; flatpak.enable = lib.mkDefault false;
}; };
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
@@ -56,11 +80,12 @@
firefox firefox
tree tree
neofetch neofetch
gdm
git git
box64 box64
#minecraft #minecraft
prismlauncher prismlauncher
#vmware-horizon-client vmware-horizon-client
distrobox distrobox
podman podman
]; ];
@@ -73,6 +98,11 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
apple-cursor
gnomeExtensions.dash-to-dock
gnomeExtensions.arcmenu
gnomeExtensions.appindicator
gnomeExtensions.tiling-assistant
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
wget wget
]; ];
@@ -81,6 +111,8 @@
DBX_CONTAINER_MANAGER = "podman"; DBX_CONTAINER_MANAGER = "podman";
}; };
nixpkgs.config.allowUnsupportedSystem = true;
# Copy the NixOS configuration file and link it from the resulting system # Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you # (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix. # accidentally delete configuration.nix.

View File

@@ -1,6 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
specialisation.gnome.configuration = { specialisation.gnome.configuration = {
home-manager.users.matt = import ./home.nix; home-manager.users.matt = import ./home.nix;
apps.discover-wrapped.enable = false; apps.discover-wrapped.enable = false;
@@ -19,7 +20,7 @@
displayManager.defaultSession = "gnome"; displayManager.defaultSession = "gnome";
# Enable Flatpak # Enable Flatpak
flatpak.enable = true; flatpak.enable = false;
# disable plasma # disable plasma
displayManager.sddm.enable = false; displayManager.sddm.enable = false;
@@ -29,4 +30,4 @@
# xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; # xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
}; };
} }

View File

@@ -3,6 +3,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
nixfmt-rfc-style nixfmt-rfc-style
deadnix deadnix
gdm
gnomeExtensions.dash-to-dock gnomeExtensions.dash-to-dock
gnomeExtensions.arcmenu gnomeExtensions.arcmenu
gnomeExtensions.appindicator gnomeExtensions.appindicator
@@ -38,4 +39,4 @@
"org/gtk/settings/file-chooser".clock-format = "12h"; "org/gtk/settings/file-chooser".clock-format = "12h";
}; };
}; };
} }

View File

@@ -1,4 +1,22 @@
{ pkgs, ... }: { pkgs, ... }:
let
gtkThemeSize = "compact";
gtkThemeAccent = "all";
gtkThemeVariant = "nord";
gtkThemeColor = "dark";
gtkTheme = "Colloid-Dark-Compact-Nord";
gtkThemePkg = pkgs.colloid-gtk-theme.override {
sizeVariants = [ gtkThemeSize ];
colorVariants = [ gtkThemeColor ];
themeVariants = [ gtkThemeAccent ];
tweaks = [ gtkThemeVariant ];
};
iconThemeColor = "dark"; # "" "light" "dark"
# iconThemeVariant = "default"; # "" "purple" "pink" "red" "orange" "yellow" "green" "teal" "grey"
iconThemeScheme = "nord"; # "" "nord" "dracula" "gruvbox" "everforest" "catppuccin"
iconTheme = "Colloid-${iconThemeScheme}-${iconThemeColor}";
iconThemePkg = pkgs.colloid-icon-theme.override { schemeVariants = [ iconThemeScheme ]; };
in
{ {
home.username = "matt"; home.username = "matt";
@@ -50,9 +68,51 @@
programs.command-not-found.enable = true; programs.command-not-found.enable = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
apple-cursor
nixfmt-rfc-style nixfmt-rfc-style
deadnix deadnix
papirus-icon-theme papirus-icon-theme
gnomeExtensions.dash-to-dock
gnomeExtensions.arcmenu
gnomeExtensions.appindicator
gnomeExtensions.tiling-assistant
gnome-tweaks
iconThemePkg
gtkThemePkg
orca-slicer
vesktop
vscodium
]; ];
dconf = {
enable = true;
settings = {
"org/gnome/desktop/interface".clock-format = "12h";
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
"org/gnome/desktop/interface".cursor-theme = "macOS-Monterey";
"org/gnome/desktop/interface".enable-hot-corners = false;
"org/gnome/desktop/interface".font-antialiasing = "grayscale";
"org/gnome/desktop/interface".font-hinting = "slight";
"org/gnome/desktop/interface".icon-theme = iconTheme;
"org/gnome/desktop/interface".gtk-theme = gtkTheme;
"org/gnome/desktop/peripherals/mouse".accel-profile = "flat";
"org/gnome/desktop/peripherals/touchpad".two-finger-scrolling-enabled = true;
"org/gnome/desktop/peripherals/touchpad".tap-to-click = true;
"org/gnome/mutter".experimental-features = [
"scale-monitor-framebuffer"
"variable-refresh-rate"
];
"org/gnome/tweaks".show-extensions-notice = false;
"org/gnome/shell/extensions/user-theme".name = gtkTheme;
"org/gnome/shell".enabled-extensions = [
"appindicatorsupport@rgcjonas.gmail.com"
"arcmenu@arcmenu.com"
"user-theme@gnome-shell-extensions.gcampax.github.com"
"dash-to-dock@micxgx.gmail.com"
"tiling-assistant@leleat-on-github"
];
"org/gtk/settings/file-chooser".clock-format = "12h";
};
};
} }