mirror of
https://github.com/davegallant/nix-config
synced 2025-08-06 03:13:38 +00:00
Refactor main into a common dir
This commit is contained in:
5
common/darwin.nix
Normal file
5
common/darwin.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
nix.extraOptions = "experimental-features = nix-command flakes";
|
||||
}
|
@@ -13,6 +13,10 @@
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
# Enable support for additional filesystems
|
||||
boot.supportedFilesystems = [ "ntfs" ];
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.dave = {
|
||||
isNormalUser = true;
|
@@ -92,7 +92,7 @@ in
|
||||
|
||||
# imaging
|
||||
gifsicle
|
||||
# gimp
|
||||
gimp
|
||||
|
||||
# video
|
||||
youtube-dl
|
12
flake.lock
generated
12
flake.lock
generated
@@ -27,11 +27,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1624417001,
|
||||
"narHash": "sha256-IQZwbBBmvtNZGz1dogf2TcaMALqQJG6YSRJiUMw6hhY=",
|
||||
"lastModified": 1624575530,
|
||||
"narHash": "sha256-KSzJG1O0tqJ13K4NPOdc0X3Hh2MJe3ZWTJJv0Tis+J4=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "b42fce7aaae71bbf5160d88b1772cd9167b03d1a",
|
||||
"rev": "7e2b1a42aaf709bb982dd1dad6f1f3bba290d64d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -58,11 +58,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1624359033,
|
||||
"narHash": "sha256-VUCSle6emCfIwMItRfMuDl2UCUNrN+AXCMV6l1AZM7E=",
|
||||
"lastModified": 1624447853,
|
||||
"narHash": "sha256-Zn+vTEa3NE9q6z6ytpcNXrr8jV7HvrKRxMYoD2E6DpE=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d2b489b24ae30278ad31e06801c3853b0edbbd9d",
|
||||
"rev": "1905f5f2e55e0db0bb6244cfe62cb6c0dbda391d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
18
flake.nix
18
flake.nix
@@ -17,14 +17,13 @@
|
||||
let
|
||||
defaultModules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
# ./main/desktop.nix
|
||||
./main/fonts.nix
|
||||
./main/general.nix
|
||||
./main/kernel.nix
|
||||
./main/netdata/default.nix
|
||||
./main/networking.nix
|
||||
./main/packages.nix
|
||||
./main/printing.nix
|
||||
# ./common/desktop.nix
|
||||
./common/fonts.nix
|
||||
./common/linux.nix
|
||||
./common/netdata/default.nix
|
||||
./common/networking.nix
|
||||
./common/packages.nix
|
||||
./common/printing.nix
|
||||
|
||||
({ config, lib, lib', ... }: {
|
||||
config = {
|
||||
@@ -66,8 +65,9 @@
|
||||
darwinConfigurations = {
|
||||
demeter = darwin.lib.darwinSystem {
|
||||
modules = [
|
||||
./common/darwin.nix
|
||||
./common/packages.nix
|
||||
./machines/demeter/configuration.nix
|
||||
./main/packages.nix
|
||||
|
||||
({ config, ... }: {
|
||||
config = {
|
||||
|
@@ -1,9 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Use the latest kernel
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
# Enable support for additional filesystems
|
||||
boot.supportedFilesystems = [ "ntfs" ];
|
||||
}
|
Reference in New Issue
Block a user