migrates even more things
This commit is contained in:
parent
fc2234ae21
commit
8363764798
6 changed files with 69 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
username = config.flake.globalConfig.username;
|
username = config.flake.globalConfig.username;
|
||||||
in
|
in
|
||||||
|
|
|
||||||
32
modules/cli-tools/default.nix
Normal file
32
modules/cli-tools/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
{ ... }:
|
||||||
|
let
|
||||||
|
commonPackages =
|
||||||
|
pkgs: with pkgs; [
|
||||||
|
neofetch
|
||||||
|
zip
|
||||||
|
unzip
|
||||||
|
ripgrep
|
||||||
|
fzf
|
||||||
|
fd
|
||||||
|
sd
|
||||||
|
bat
|
||||||
|
tldr
|
||||||
|
fortune
|
||||||
|
just
|
||||||
|
mmv-go
|
||||||
|
usbutils
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
flake.modules.nixos.cli-tools =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
environment.systemPackages = commonPackages pkgs;
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.darwin.cli-tools =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
environment.systemPackages = commonPackages pkgs;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
|
gamescopeSession.enable = true;
|
||||||
protontricks.enable = true;
|
protontricks.enable = true;
|
||||||
|
|
||||||
extraCompatPackages = with pkgs; [
|
extraCompatPackages = with pkgs; [
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,12 @@ in
|
||||||
modules = with config.flake.modules.nixos; [
|
modules = with config.flake.modules.nixos; [
|
||||||
home-manager
|
home-manager
|
||||||
base
|
base
|
||||||
|
shell
|
||||||
|
cli-tools
|
||||||
|
nix
|
||||||
nvidia-graphics
|
nvidia-graphics
|
||||||
drawing-tablet
|
drawing-tablet
|
||||||
printing
|
printing
|
||||||
shell
|
|
||||||
desktop
|
desktop
|
||||||
gaming
|
gaming
|
||||||
|
|
||||||
|
|
|
||||||
29
modules/nix/default.nix
Normal file
29
modules/nix/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
flake.modules.nixos.nix =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
silent = false;
|
||||||
|
loadInNixShell = true;
|
||||||
|
direnvrcExtra = "";
|
||||||
|
nix-direnv = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
nix.settings.experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
|
programs.nix-ld.enable = true;
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
nil
|
||||||
|
statix
|
||||||
|
manix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
{ config, ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
flake.modules.nixos.nvidia-graphics =
|
flake.modules.nixos.nvidia-graphics =
|
||||||
{ pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
hardware = {
|
hardware = {
|
||||||
graphics.enable = true;
|
graphics.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue