-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implemented existing targets in flake config
- Loading branch information
Showing
12 changed files
with
224 additions
and
81 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
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 @@ | ||
{ pkgs, ... }: | ||
{ | ||
# enable video support and vulkan drivers | ||
hardware.opengl.driSupport32Bit = true; | ||
hardware.opengl.enable = true; | ||
hardware.pulseaudio.support32Bit = true; | ||
environment.systemPackages = [ pkgs.vulkan-tools ]; | ||
} |
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,4 @@ | ||
{ 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ pkgs, ...}: | ||
{ | ||
imports = [ | ||
../av/vulkan.nix | ||
]; | ||
|
||
environment.systemPackages = with pkgs; [ | ||
lutris | ||
wineWowPackages.stable | ||
winetricks | ||
]; | ||
} |
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,4 @@ | ||
{ pkgs, ... }: | ||
{ | ||
environment.systemPackages = with pkgs; [ spotify ]; | ||
} |
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 @@ | ||
_: { | ||
xdg.portal = { | ||
enable = true; | ||
xdgOpenUsePortal = true; | ||
enable = false; | ||
# xdgOpenUsePortal = 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ config, desktop, lib, pkgs, ... }: | ||
let | ||
ifExists = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups; | ||
in | ||
{ | ||
# Only include desktop components if one is supplied. | ||
imports = [ ] ++ lib.optional (builtins.isString desktop) ./desktop.nix; | ||
|
||
environment.systemPackages = [ | ||
pkgs.yadm # Terminal dot file manager | ||
]; | ||
|
||
users.users.tcarrio = { | ||
description = "Tom Carrio"; | ||
extraGroups = [ | ||
"audio" | ||
"input" | ||
"networkmanager" | ||
"users" | ||
"video" | ||
"wheel" | ||
] | ||
++ ifExists [ | ||
"docker" | ||
"podman" | ||
]; | ||
# mkpasswd -m sha-512 | ||
hashedPassword = "$6$uLtXsdZpgBd/iVao$L3Lk9vmQMOfZrARIyl6Sq6ZbU91d53dWQteZADxkgLJ8FZUet.L4E73LnmVccJUGdAUcMQ1cuISS9j0XygM2Q1"; | ||
homeMode = "0755"; | ||
isNormalUser = true; | ||
openssh.authorizedKeys.keys = [ | ||
# Add any authorized keys for SSH access here | ||
]; | ||
packages = [ pkgs.home-manager ]; | ||
shell = pkgs.fish; | ||
}; | ||
} |
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,45 @@ | ||
{ desktop, pkgs, lib, ... }: { | ||
imports = [ | ||
../../desktop/brave.nix | ||
../../desktop/chromium.nix | ||
../../desktop/firefox.nix | ||
#../../desktop/evolution.nix | ||
../../desktop/google-chrome.nix | ||
../../desktop/lutris.nix | ||
../../desktop/microsoft-edge.nix | ||
../../desktop/obs-studio.nix | ||
../../desktop/spotify.nix | ||
../../desktop/tilix.nix | ||
../../desktop/vscode.nix | ||
] ++ lib.optional (builtins.pathExists (../.. + "/desktop/${desktop}-apps.nix")) ../../desktop/${desktop}-apps.nix; | ||
|
||
environment.systemPackages = with pkgs; [ | ||
audio-recorder | ||
gimp-with-plugins | ||
gnome.gnome-clocks | ||
gnome.dconf-editor | ||
gnome.gnome-sound-recorder | ||
inkscape | ||
libreoffice | ||
meld | ||
netflix | ||
pick-colour-picker | ||
slack | ||
|
||
# Fast moving apps use the unstable branch | ||
unstable.discord | ||
]; | ||
|
||
# programs = { | ||
# chromium = { | ||
# extensions = [ | ||
# "kbfnbcaeplbcioakkpcpgfkobkghlhen" # Grammarly | ||
# "cjpalhdlnbpafiamejdnhcphjbkeiagm" # uBlock Origin | ||
# "mdjildafknihdffpkfmmpnpoiajfjnjd" # Consent-O-Matic | ||
# "mnjggcdmjocbbbhaepdhchncahnbgone" # SponsorBlock for YouTube | ||
# "gebbhagfogifgggkldgodflihgfeippi" # Return YouTube Dislike | ||
# "edlifbnjlicfpckhgjhflgkeeibhhcii" # Screenshot Tool | ||
# ]; | ||
# }; | ||
# }; | ||
} |
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,52 @@ | ||
# Do not modify this file! It was generated by ‘nixos-generate-config’ | ||
# and may be overwritten by future invocations. Please make changes | ||
# to /etc/nixos/configuration.nix instead. | ||
{ config, lib, pkgs, modulesPath, ... }: | ||
|
||
{ | ||
imports = | ||
[ (modulesPath + "/installer/scan/not-detected.nix") | ||
]; | ||
|
||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; | ||
boot.initrd.kernelModules = [ ]; | ||
boot.kernelModules = [ "kvm-amd" ]; | ||
boot.extraModulePackages = [ ]; | ||
|
||
fileSystems."/" = | ||
{ device = "/dev/disk/by-uuid/2c4292c6-c365-4c2a-a762-318eec1a0883"; | ||
fsType = "btrfs"; | ||
options = [ "subvol=root" "compress=zstd" ]; | ||
}; | ||
|
||
fileSystems."/home" = | ||
{ device = "/dev/disk/by-uuid/2c4292c6-c365-4c2a-a762-318eec1a0883"; | ||
fsType = "btrfs"; | ||
options = [ "subvol=home" "compress=zstd" ]; | ||
}; | ||
|
||
fileSystems."/nix" = | ||
{ device = "/dev/disk/by-uuid/2c4292c6-c365-4c2a-a762-318eec1a0883"; | ||
fsType = "btrfs"; | ||
options = [ "subvol=nix" "compress=zstd" "noatime" ]; | ||
}; | ||
|
||
fileSystems."/boot" = | ||
{ device = "/dev/disk/by-uuid/75E4-D8D4"; | ||
fsType = "vfat"; | ||
}; | ||
|
||
swapDevices = | ||
[ { device = "/dev/disk/by-uuid/1222e371-0e03-447b-ae1c-e511900edabc"; } | ||
]; | ||
|
||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking | ||
# (the default) this is the recommended approach. When using systemd-networkd it's | ||
# still possible to use this option, but it's recommended to use it in conjunction | ||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. | ||
networking.useDHCP = lib.mkDefault true; | ||
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true; | ||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; | ||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; | ||
} |