Format files

This commit is contained in:
Bad 2021-04-06 20:59:09 +02:00
parent 40a4e0e21f
commit 8f204d6f50
18 changed files with 161 additions and 95 deletions

3
extern/default.nix vendored
View file

@ -25,6 +25,5 @@
];
# passed to all home-manager modules
userSpecialArgs = {
};
userSpecialArgs = { };
}

View file

@ -88,7 +88,8 @@
tests = nixos.lib.optionalAttrs (system == "x86_64-linux")
(import ./tests { inherit self pkgs; });
deployHosts = nixos.lib.filterAttrs
(n: _: self.nixosConfigurations.${n}.config.nixpkgs.system == system) self.deploy.nodes;
(n: _: self.nixosConfigurations.${n}.config.nixpkgs.system == system)
self.deploy.nodes;
deployChecks = deploy.lib.${system}.deployChecks { nodes = deployHosts; };
in
nixos.lib.recursiveUpdate tests deployChecks;

View file

@ -19,18 +19,19 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/75b8df4a-8839-40cd-92ad-dc83007199f4";
{
device = "/dev/disk/by-uuid/75b8df4a-8839-40cd-92ad-dc83007199f4";
fsType = "btrfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/B940-3C52";
{
device = "/dev/disk/by-uuid/B940-3C52";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/1b49df34-6db0-487a-9bb1-306ede0245b0"; }
];
[{ device = "/dev/disk/by-uuid/1b49df34-6db0-487a-9bb1-306ede0245b0"; }];
boot.kernelParams = [ "intel_pstate=no_hwp" ];
fileSystems."/".options = [ "noatime" "nodiratime" "discard" ];

46
hosts/tesco.nix Normal file
View file

@ -0,0 +1,46 @@
{ suites, ... }@inputs:
{
imports = builtins.trace (builtins.attrNames inputs) (suites.desktop ++ suites.amd);
# 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. Its 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 = "20.09"; # Did you read the comment?
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "tesco"; # Define your hostname.
networking.useDHCP = false;
networking.interfaces.enp6s0.useDHCP = true;
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-uuid/71831856-336e-43b5-9ed8-a657939f95a9";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/3B73-1D5D";
fsType = "vfat";
};
fileSystems."/home/mae" =
{
device = "/dev/disk/by-uuid/d7e91b96-f7e1-4feb-84d4-4e024746d73e";
fsType = "btrfs";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/99d35be0-8935-4cec-bf58-4f666db922f0"; }];
}

13
profiles/amd/default.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
{
hardware.opengl.driSupport = true;
hardware.opengl.driSupport32Bit = true;
hardware.opengl.extraPackages = with pkgs; [
rocm-opencl-icd
rocm-opencl-runtime
amdvlk
];
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ];
}

View file

@ -27,6 +27,7 @@ in
manix
moreutils
nix-index
tmux
nmap
ripgrep
whois

View file

@ -1,9 +1,6 @@
{ config, lib, pkgs, ... }:
{
networking.interfaces.enp0s31f6.useDHCP = true;
networking.interfaces.wlp3s0.useDHCP = true;
xdg.portal.enable = true;
sound.enable = true;

View file

@ -2,6 +2,7 @@
{
system = with profiles; rec {
base = [ users.mae users.root ];
amd = [ profiles.amd ];
desktop = base ++ [ sway develop game workstation ssh users.mae users.root ];
lap = desktop ++ [ laptop bluetooth print networkmanager ];
};

View file

@ -0,0 +1 @@

View file

@ -8,7 +8,8 @@
withNodeJs = true;
plugins = with pkgs.vimPlugins; [
{ plugin = coc-nvim;
{
plugin = coc-nvim;
config = ''
nmap <silent> <F2> <Plug>(coc-rename)
@ -24,21 +25,26 @@
vnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
endif
''; }
'';
}
fzf-vim
{ plugin = iceberg-vim;
config = "colorscheme iceberg";}
{
plugin = iceberg-vim;
config = "colorscheme iceberg";
}
vim-sleuth
coc-json
coc-html
coc-tsserver
neoformat
undotree
{ plugin = vim-jsdoc;
{
plugin = vim-jsdoc;
config = ''
let g:jsdoc_formatter = "tsdoc"
let g:typescript_indent_disable = 1
'';}
'';
}
];
extraConfig = ''
set background=dark