Refactor main into a common dir

This commit is contained in:
Dave Gallant
2021-06-24 22:43:32 -04:00
parent 152749f02d
commit d4bc0d6f75
12 changed files with 25 additions and 25 deletions

5
common/darwin.nix Normal file
View File

@@ -0,0 +1,5 @@
{ pkgs, ... }:
{
nix.extraOptions = "experimental-features = nix-command flakes";
}

View File

@@ -13,6 +13,10 @@
nixpkgs.config.allowUnfree = true; 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. # Define a user account. Don't forget to set a password with passwd.
users.users.dave = { users.users.dave = {
isNormalUser = true; isNormalUser = true;

View File

@@ -92,7 +92,7 @@ in
# imaging # imaging
gifsicle gifsicle
# gimp gimp
# video # video
youtube-dl youtube-dl

12
flake.lock generated
View File

@@ -27,11 +27,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1624417001, "lastModified": 1624575530,
"narHash": "sha256-IQZwbBBmvtNZGz1dogf2TcaMALqQJG6YSRJiUMw6hhY=", "narHash": "sha256-KSzJG1O0tqJ13K4NPOdc0X3Hh2MJe3ZWTJJv0Tis+J4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "b42fce7aaae71bbf5160d88b1772cd9167b03d1a", "rev": "7e2b1a42aaf709bb982dd1dad6f1f3bba290d64d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -58,11 +58,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1624359033, "lastModified": 1624447853,
"narHash": "sha256-VUCSle6emCfIwMItRfMuDl2UCUNrN+AXCMV6l1AZM7E=", "narHash": "sha256-Zn+vTEa3NE9q6z6ytpcNXrr8jV7HvrKRxMYoD2E6DpE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d2b489b24ae30278ad31e06801c3853b0edbbd9d", "rev": "1905f5f2e55e0db0bb6244cfe62cb6c0dbda391d",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -17,14 +17,13 @@
let let
defaultModules = [ defaultModules = [
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
# ./main/desktop.nix # ./common/desktop.nix
./main/fonts.nix ./common/fonts.nix
./main/general.nix ./common/linux.nix
./main/kernel.nix ./common/netdata/default.nix
./main/netdata/default.nix ./common/networking.nix
./main/networking.nix ./common/packages.nix
./main/packages.nix ./common/printing.nix
./main/printing.nix
({ config, lib, lib', ... }: { ({ config, lib, lib', ... }: {
config = { config = {
@@ -66,8 +65,9 @@
darwinConfigurations = { darwinConfigurations = {
demeter = darwin.lib.darwinSystem { demeter = darwin.lib.darwinSystem {
modules = [ modules = [
./common/darwin.nix
./common/packages.nix
./machines/demeter/configuration.nix ./machines/demeter/configuration.nix
./main/packages.nix
({ config, ... }: { ({ config, ... }: {
config = { config = {

View File

@@ -1,9 +0,0 @@
{ pkgs, ... }:
{
# Use the latest kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
# Enable support for additional filesystems
boot.supportedFilesystems = [ "ntfs" ];
}