-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45f03d7
commit 4a025a0
Showing
46 changed files
with
453 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
# macOS adds a file when opening a directory with Finder. | ||
.DS_Store | ||
|
||
# Running `nixos-rebuild build` or `nix build` generates a result directory. | ||
result | ||
.DS_Store | ||
|
||
# Running `nixos-rebuild build-vm` and starting the VM adds a file for | ||
# the virtual storage drive. | ||
*.qcow2 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
inputs@{ lib, ... }: | ||
|
||
rec { | ||
mkOverlays = names: channels: | ||
lib.map | ||
(name: import (lib.getOverlayPath name) (inputs // { inherit channels; })) | ||
names; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
inputs@{ lib, ... }: | ||
|
||
rec { | ||
mkSystem = { hardware ? null, suites ? [ ], presets ? [ ], modules ? [ ] | ||
, users ? [ ], config ? { }, }: | ||
let | ||
suitePaths = lib.map lib.getSuitePath suites; | ||
presetPaths = lib.map lib.getPresetPath presets; | ||
modulePaths = lib.map lib.getModulePath modules; | ||
userPaths = lib.map lib.getUserPath users; | ||
imports = (lib.optional (lib.not null hardware) hardware) | ||
++ (lib.optional (builtins.hasAttr "imports" config) config.imports) | ||
++ suitePaths ++ presetPaths ++ modulePaths ++ userPaths; | ||
in config // { inherit imports; }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,38 @@ | ||
inputs@{ pkgs, lib, ... }: | ||
|
||
{ | ||
imports = [ | ||
# Hardware configuration for the system. | ||
./hardware.nix | ||
lib.mkSystem { | ||
# Hardware configuration for the system. | ||
hardware = ./hardware.nix; | ||
|
||
# Presets | ||
../../../presets/nix.nix | ||
../../../presets/boot.nix | ||
../../../presets/locale.nix | ||
../../../presets/gnome.nix | ||
../../../presets/networking.nix | ||
../../../presets/audio.nix | ||
../../../presets/fonts.nix | ||
../../../presets/dev.nix | ||
suites = [ | ||
"nixos" | ||
"desktop" | ||
"apps" | ||
"games" | ||
"dev" | ||
]; | ||
|
||
presets = [ | ||
]; | ||
|
||
modules = [ | ||
"fprintd" | ||
]; | ||
|
||
# Users | ||
../../../users/short | ||
users = [ | ||
"short" | ||
]; | ||
|
||
# Enable DHCP on the wireless link | ||
networking.interfaces.wlp0s20f3.useDHCP = true; | ||
config = { | ||
# Enable DHCP on the wireless link | ||
networking.interfaces.wlp0s20f3.useDHCP = true; | ||
|
||
# This value determines the NixOS release from which the default | ||
# settings for stateful data, like file locations and database versions | ||
# on your system were taken. It‘s perfectly fine and recommended to leave | ||
# this value at the release version of the first install of this system. | ||
# Before changing this value read the documentation for this option | ||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). | ||
system.stateVersion = "21.11"; # Did you read the comment? | ||
# This value determines the NixOS release from which the default | ||
# settings for stateful data, like file locations and database versions | ||
# on your system were taken. It‘s perfectly fine and recommended to leave | ||
# this value at the release version of the first install of this system. | ||
# Before changing this value read the documentation for this option | ||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). | ||
system.stateVersion = "21.11"; # Did you read the comment? | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
inputs@{pkgs, ... }: | ||
|
||
{ | ||
environment.systemPackages = with pkgs; [ | ||
_1password | ||
_1password-gui | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ pkgs, ... }: | ||
|
||
{ | ||
environment.systemPackages = with pkgs; [ discord ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ pkgs, ... }: | ||
|
||
{ | ||
environment.systemPackages = with pkgs; [ | ||
firefox | ||
]; | ||
} | ||
environment.systemPackages = with pkgs; [ firefox ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
{ pkgs, ... }: | ||
|
||
{ | ||
fonts.fonts = with pkgs; [ | ||
noto-fonts | ||
noto-fonts-emoji | ||
(nerdfonts.override { | ||
fonts = [ "Hack" "DroidSansMono" ]; | ||
}) | ||
]; | ||
} | ||
fonts.fonts = with pkgs; [ | ||
noto-fonts | ||
noto-fonts-emoji | ||
(nerdfonts.override { fonts = [ "Hack" "DroidSansMono" ]; }) | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ ... }: | ||
|
||
{ | ||
services.fprintd.enable = true; | ||
} | ||
services.fprintd.enable = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ pkgs, ... }: | ||
|
||
{ | ||
environment.systemPackages = with pkgs; [ | ||
git | ||
]; | ||
} | ||
environment.systemPackages = with pkgs; [ git ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
{ ... }: | ||
|
||
{ | ||
services.xserver = { | ||
enable = true; | ||
services.xserver = { | ||
enable = true; | ||
|
||
displayManager.gdm.enable = true; | ||
desktopManager.gnome.enable = true; | ||
layout = "us"; | ||
xkbOptions = "caps:escape"; | ||
}; | ||
libinput.enable = true; | ||
displayManager.gdm.enable = true; | ||
desktopManager.gnome.enable = true; | ||
layout = "us"; | ||
xkbOptions = "caps:swapescape"; | ||
|
||
} | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
inputs@{ lib, home-manager, ... }: | ||
|
||
{ | ||
imports = [ | ||
home-manager.nixosModules.home-manager | ||
]; | ||
|
||
home-manager.useGlobalPkgs = true; | ||
home-manager.useUserPkgs = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
{ lib, ... }: | ||
|
||
{ | ||
i18n.defaultLocale = "en_US.UTF-8"; | ||
i18n.defaultLocale = "en_US.UTF-8"; | ||
|
||
console = { | ||
keyMap = lib.mkDefault "us"; | ||
}; | ||
} | ||
console = { keyMap = lib.mkDefault "us"; }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ pkgs, ... }: | ||
|
||
{ | ||
environment.systemPackages = with pkgs; [ | ||
neovim | ||
]; | ||
} | ||
environment.systemPackages = with pkgs; [ neovim ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ ... }: | ||
|
||
{ | ||
services.printing.enable = true; | ||
} | ||
services.printing.enable = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ ... }: | ||
|
||
{ | ||
sound.enable = true; | ||
hardware.pulseaudio.enable = true; | ||
} | ||
sound.enable = true; | ||
hardware.pulseaudio.enable = true; | ||
} |
Oops, something went wrong.