Marisa: removed initrd kernel modules that are not required
This commit is contained in:
		
							
								
								
									
										54
									
								
								configs/nvim.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								configs/nvim.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,54 @@
 | 
				
			|||||||
 | 
					{config, pkgs, ...}:
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  programs.neovim = {
 | 
				
			||||||
 | 
					    enable = true;
 | 
				
			||||||
 | 
					    configure = {
 | 
				
			||||||
 | 
					    customRC = ''
 | 
				
			||||||
 | 
					      "theme
 | 
				
			||||||
 | 
					      let g:gruvbox_italic=1
 | 
				
			||||||
 | 
					      let g:gruvbox_contrast_dark="hard"
 | 
				
			||||||
 | 
					        let g:gruvbox_contrast_light="hard"
 | 
				
			||||||
 | 
					        set background=dark
 | 
				
			||||||
 | 
					        colorscheme gruvbox
 | 
				
			||||||
 | 
					        '' +
 | 
				
			||||||
 | 
					        builtins.readFile ./nvim/init.vim +
 | 
				
			||||||
 | 
					        builtins.readFile ./nvim/utils.vim +
 | 
				
			||||||
 | 
						''
 | 
				
			||||||
 | 
						"Floaterm
 | 
				
			||||||
 | 
					        let g:floaterm_keymap_toggle = '<F1>'
 | 
				
			||||||
 | 
					        let g:floaterm_keymap_next   = '<F2>'
 | 
				
			||||||
 | 
					        let g:floaterm_keymap_prev   = '<F3>'
 | 
				
			||||||
 | 
					        let g:floaterm_keymap_new    = '<F4>'
 | 
				
			||||||
 | 
					        let g:floaterm_gitcommit='floaterm'
 | 
				
			||||||
 | 
					        let g:floaterm_autoinsert=1
 | 
				
			||||||
 | 
					        let g:floaterm_width=0.8
 | 
				
			||||||
 | 
					        let g:floaterm_height=0.8
 | 
				
			||||||
 | 
					        let g:floaterm_wintitle=0
 | 
				
			||||||
 | 
					        let g:floaterm_shell="/usr/bin/env zsh"
 | 
				
			||||||
 | 
						'' +
 | 
				
			||||||
 | 
					/*	''
 | 
				
			||||||
 | 
						"Colorizer
 | 
				
			||||||
 | 
					        packadd! nvim-colorizer.lua
 | 
				
			||||||
 | 
					        lua require'colorizer'.setup()
 | 
				
			||||||
 | 
						'' +
 | 
				
			||||||
 | 
					*/	''
 | 
				
			||||||
 | 
						"closetag
 | 
				
			||||||
 | 
					        let g:closetag_filenames = "*.html,*.xhtml,*.phtml,*.js,*.erb,*.jsx"
 | 
				
			||||||
 | 
					        let g:closetag_xhtml_filenames = '*.xhtml,*.jsx,*.js,*.erb'
 | 
				
			||||||
 | 
					        let g:closetag_emptyTags_caseSensitive = 1
 | 
				
			||||||
 | 
					        let g:closetag_shortcut = '>'
 | 
				
			||||||
 | 
					        let g:closetag_close_shortcut = '<leader>>'
 | 
				
			||||||
 | 
						'' +
 | 
				
			||||||
 | 
						''
 | 
				
			||||||
 | 
						"nerdcommenter
 | 
				
			||||||
 | 
					        map <C-c> <plug>NERDCommenterToggle
 | 
				
			||||||
 | 
					        map <C-d> <plug>NERDCommenterSexy
 | 
				
			||||||
 | 
						'';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						packages.myVimPackage = with pkgs.vimPlugins; {
 | 
				
			||||||
 | 
					              start = [ auto-pairs vim-floaterm vim-rooter vim-polyglot gruvbox vim-closetag vim-floaterm nerdcommenter];
 | 
				
			||||||
 | 
						};
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					          
 | 
				
			||||||
							
								
								
									
										15
									
								
								configuration.nix
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										15
									
								
								configuration.nix
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					{lib, config, ...}:
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  imports = 
 | 
				
			||||||
 | 
					  [
 | 
				
			||||||
 | 
					 #   <nixpkgs/nixos/modules/profiles/all-hardware.nix>
 | 
				
			||||||
 | 
					    ./marisa/pkgs.nix
 | 
				
			||||||
 | 
					    ./marisa/networking.nix
 | 
				
			||||||
 | 
					    ./marisa/stuff.nix
 | 
				
			||||||
 | 
					    ./marisa/hardware.nix
 | 
				
			||||||
 | 
					    ./marisa/boot.nix
 | 
				
			||||||
 | 
					    ./marisa/services.nix
 | 
				
			||||||
 | 
					    ./configs/nvim.nix
 | 
				
			||||||
 | 
					  ];
 | 
				
			||||||
 | 
					  system.stateVersion = "21.05";
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										27
									
								
								flake.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										27
									
								
								flake.nix
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							@@ -16,16 +16,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  outputs = inputs@{self, nixpkgs, ... }:
 | 
					  outputs = inputs@{self, nixpkgs, ... }:
 | 
				
			||||||
  inputs.utils.lib.eachDefaultSystem (system: 
 | 
					  inputs.utils.lib.eachDefaultSystem (system: 
 | 
				
			||||||
  let
 | 
					 | 
				
			||||||
    overlays = [
 | 
					 | 
				
			||||||
      (import ./overlays/overridesandshit.nix)
 | 
					 | 
				
			||||||
      (import ./overlays/packages.nix)
 | 
					 | 
				
			||||||
    ];
 | 
					 | 
				
			||||||
  in
 | 
					 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    packages = import nixpkgs {
 | 
					    packages = import nixpkgs {
 | 
				
			||||||
      inherit system;
 | 
					      inherit system;
 | 
				
			||||||
      overlays = overlays ++ [ inputs.nur.overlay ];
 | 
					      overlays = self.overlays ++ [ inputs.nur.overlay ];
 | 
				
			||||||
      config.allowUnfree = true;
 | 
					      config.allowUnfree = true;
 | 
				
			||||||
      config.allowBroken = true;
 | 
					      config.allowBroken = true;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
@@ -46,7 +40,8 @@
 | 
				
			|||||||
        homeDirectory = "/home/natto";
 | 
					        homeDirectory = "/home/natto";
 | 
				
			||||||
        username = "natto";
 | 
					        username = "natto";
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
      ottan = inputs.home-manager.lib.homeManagerConfiguration {
 | 
					   /*
 | 
				
			||||||
 | 
					     ottan = inputs.home-manager.lib.homeManagerConfiguration {
 | 
				
			||||||
        system = "aarch64-linux";
 | 
					        system = "aarch64-linux";
 | 
				
			||||||
        configuration = { lib, ... }: {
 | 
					        configuration = { lib, ... }: {
 | 
				
			||||||
          imports = [ 
 | 
					          imports = [ 
 | 
				
			||||||
@@ -57,7 +52,7 @@
 | 
				
			|||||||
        homeDirectory = "/home/ottan";
 | 
					        homeDirectory = "/home/ottan";
 | 
				
			||||||
        username = "ottan";
 | 
					        username = "ottan";
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					  */
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    nixosConfigurations = {
 | 
					    nixosConfigurations = {
 | 
				
			||||||
@@ -82,6 +77,20 @@
 | 
				
			|||||||
          }
 | 
					          }
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					      Marisus = nixpkgs.lib.nixosSystem {
 | 
				
			||||||
 | 
					        system = "aarch64-linux";
 | 
				
			||||||
 | 
					        modules = [ 
 | 
				
			||||||
 | 
					          ./marisa.nix
 | 
				
			||||||
 | 
					 #         inputs.home-manager.nixosModules.home-manager
 | 
				
			||||||
 | 
					          {
 | 
				
			||||||
 | 
					            nixpkgs.pkgs = self.packages.x86_64-linux // {crossSystem.config = "aarch64-unknown-linux-gnu";};
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        ];
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					    overlays = [
 | 
				
			||||||
 | 
					      (import ./overlays/overridesandshit.nix)
 | 
				
			||||||
 | 
					      (import ./overlays/packages.nix)
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,37 +0,0 @@
 | 
				
			|||||||
{config, pkgs, lib, ...}:
 | 
					 | 
				
			||||||
let
 | 
					 | 
				
			||||||
  home = config.home.homeDirectory;
 | 
					 | 
				
			||||||
in
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  imports = [
 | 
					 | 
				
			||||||
    ./stuff/programs/nvim.nix
 | 
					 | 
				
			||||||
    ./stuff/programs/emacs.nix
 | 
					 | 
				
			||||||
    ./stuff/secret.nix
 | 
					 | 
				
			||||||
  ];
 | 
					 | 
				
			||||||
 /* age = {
 | 
					 | 
				
			||||||
    sshKeyPaths = [ "${home}/.ssh/id_ed25519" ];
 | 
					 | 
				
			||||||
    secrets = {
 | 
					 | 
				
			||||||
      zshrc = {
 | 
					 | 
				
			||||||
        file = ./secrets/.zshrc.age;
 | 
					 | 
				
			||||||
        path = "${home}/.zshrc";
 | 
					 | 
				
			||||||
        mode = "660";
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
  };*/
 | 
					 | 
				
			||||||
  home = {
 | 
					 | 
				
			||||||
    packages = with pkgs; [
 | 
					 | 
				
			||||||
      pamixer
 | 
					 | 
				
			||||||
      curl
 | 
					 | 
				
			||||||
    ];
 | 
					 | 
				
			||||||
    file = {
 | 
					 | 
				
			||||||
      dwm-autostart = {
 | 
					 | 
				
			||||||
        source = ./config/dwm/autostart.sh;
 | 
					 | 
				
			||||||
        target = "${home}/.dwm/autostart.sh";
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
      dwm-status = {
 | 
					 | 
				
			||||||
        source = ./config/dwm/bruhstatus.sh;
 | 
					 | 
				
			||||||
        target = "${home}/.dwm/bruhstatus.sh";
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,88 +0,0 @@
 | 
				
			|||||||
{config, pkgs, ...}:
 | 
					 | 
				
			||||||
let
 | 
					 | 
				
			||||||
  plugs = {
 | 
					 | 
				
			||||||
    floaterm = {
 | 
					 | 
				
			||||||
      config = ''
 | 
					 | 
				
			||||||
        let g:floaterm_keymap_toggle = '<F1>'
 | 
					 | 
				
			||||||
        let g:floaterm_keymap_next   = '<F2>'
 | 
					 | 
				
			||||||
        let g:floaterm_keymap_prev   = '<F3>'
 | 
					 | 
				
			||||||
        let g:floaterm_keymap_new    = '<F4>'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        let g:floaterm_gitcommit='floaterm'
 | 
					 | 
				
			||||||
        let g:floaterm_autoinsert=1
 | 
					 | 
				
			||||||
        let g:floaterm_width=0.8
 | 
					 | 
				
			||||||
        let g:floaterm_height=0.8
 | 
					 | 
				
			||||||
        let g:floaterm_wintitle=0
 | 
					 | 
				
			||||||
        let g:floaterm_shell="/usr/bin/env zsh"
 | 
					 | 
				
			||||||
        '';
 | 
					 | 
				
			||||||
      plugin = pkgs.vimPlugins.vim-floaterm;
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
    nvim-colorizer = {
 | 
					 | 
				
			||||||
      plugin = pkgs.vimPlugins.nvim-colorizer-lua;
 | 
					 | 
				
			||||||
      config = ''
 | 
					 | 
				
			||||||
        packadd! nvim-colorizer.lua
 | 
					 | 
				
			||||||
        lua require'colorizer'.setup()
 | 
					 | 
				
			||||||
        '';
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
    auto-pairs = {
 | 
					 | 
				
			||||||
      plugin = pkgs.vimPlugins.auto-pairs;
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
    vim-closetag = {
 | 
					 | 
				
			||||||
      config = ''
 | 
					 | 
				
			||||||
        let g:closetag_filenames = "*.html,*.xhtml,*.phtml,*.js,*.erb,*.jsx"
 | 
					 | 
				
			||||||
        let g:closetag_xhtml_filenames = '*.xhtml,*.jsx,*.js,*.erb'
 | 
					 | 
				
			||||||
        let g:closetag_emptyTags_caseSensitive = 1
 | 
					 | 
				
			||||||
        let g:closetag_shortcut = '>'
 | 
					 | 
				
			||||||
        let g:closetag_close_shortcut = '<leader>>'
 | 
					 | 
				
			||||||
        '';
 | 
					 | 
				
			||||||
      plugin = pkgs.vimPlugins.vim-closetag;
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
    nerdcommenter = {
 | 
					 | 
				
			||||||
      config = ''
 | 
					 | 
				
			||||||
        map <C-c> <plug>NERDCommenterToggle
 | 
					 | 
				
			||||||
        map <C-d> <plug>NERDCommenterSexy
 | 
					 | 
				
			||||||
        '';
 | 
					 | 
				
			||||||
      plugin = pkgs.vimPlugins.nerdcommenter;
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
    vim-rooter = {
 | 
					 | 
				
			||||||
      plugin = pkgs.vimPlugins.vim-rooter;
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
    vim-polyglot = {
 | 
					 | 
				
			||||||
      plugin = pkgs.vimPlugins.vim-polyglot;
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
    themes = {
 | 
					 | 
				
			||||||
      gruvbox = {
 | 
					 | 
				
			||||||
        plugin = pkgs.vimPlugins.gruvbox;
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
in
 | 
					 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    programs.neovim = {
 | 
					 | 
				
			||||||
      enable = true;
 | 
					 | 
				
			||||||
      vimAlias = false;
 | 
					 | 
				
			||||||
      viAlias = false;
 | 
					 | 
				
			||||||
      withNodeJs = false;
 | 
					 | 
				
			||||||
      withPython = false;
 | 
					 | 
				
			||||||
      extraConfig = ''
 | 
					 | 
				
			||||||
        let g:gruvbox_italic=1
 | 
					 | 
				
			||||||
        let g:gruvbox_contrast_dark="hard"
 | 
					 | 
				
			||||||
        let g:gruvbox_contrast_light="hard"
 | 
					 | 
				
			||||||
        set background=dark
 | 
					 | 
				
			||||||
        colorscheme gruvbox
 | 
					 | 
				
			||||||
        '' +
 | 
					 | 
				
			||||||
        builtins.readFile ../../config/nvim/init.vim +
 | 
					 | 
				
			||||||
        builtins.readFile ../../config/nvim/utils.vim;
 | 
					 | 
				
			||||||
      plugins = with plugs; [
 | 
					 | 
				
			||||||
        auto-pairs
 | 
					 | 
				
			||||||
       # nvim-colorizer
 | 
					 | 
				
			||||||
        floaterm
 | 
					 | 
				
			||||||
        vim-rooter
 | 
					 | 
				
			||||||
        nerdcommenter
 | 
					 | 
				
			||||||
        vim-polyglot
 | 
					 | 
				
			||||||
        vim-closetag
 | 
					 | 
				
			||||||
        themes.gruvbox
 | 
					 | 
				
			||||||
      ];
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
          
 | 
					 | 
				
			||||||
@@ -9,6 +9,8 @@
 | 
				
			|||||||
    ./marisa/hardware.nix
 | 
					    ./marisa/hardware.nix
 | 
				
			||||||
    ./marisa/boot.nix
 | 
					    ./marisa/boot.nix
 | 
				
			||||||
    ./marisa/services.nix
 | 
					    ./marisa/services.nix
 | 
				
			||||||
 | 
					    ./marisa/cachix.nix
 | 
				
			||||||
 | 
					    ./configs/nvim.nix
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
  system.stateVersion = "21.05";
 | 
					  system.stateVersion = "21.05";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,45 +1,7 @@
 | 
				
			|||||||
{config, ...}:
 | 
					{config, ...}:
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  boot = {
 | 
					  boot = {
 | 
				
			||||||
    initrd.availableKernelModules = [ "xhci_pci" "usb_storage" "usbhid" "uas"
 | 
					    initrd.availableKernelModules = [ "xhci_pci" "usb_storage" "usbhid" "uas" "pcie-brcmstb"];
 | 
				
			||||||
"ahci"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      "ata_piix"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      "sata_inic162x" "sata_nv" "sata_promise" "sata_qstor"
 | 
					 | 
				
			||||||
      "sata_sil" "sata_sil24" "sata_sis" "sata_svw" "sata_sx4"
 | 
					 | 
				
			||||||
      "sata_uli" "sata_via" "sata_vsc"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      "vc4"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      "pcie-brcmstb"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      # Rockchip
 | 
					 | 
				
			||||||
      "dw-hdmi"
 | 
					 | 
				
			||||||
      "dw-mipi-dsi"
 | 
					 | 
				
			||||||
      "rockchipdrm"
 | 
					 | 
				
			||||||
      "rockchip-rga"
 | 
					 | 
				
			||||||
      "phy-rockchip-pcie"
 | 
					 | 
				
			||||||
      "pcie-rockchip-host"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      # Misc. uncategorized hardware
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      # Used for some platform's integrated displays
 | 
					 | 
				
			||||||
      "panel-simple"
 | 
					 | 
				
			||||||
      "pwm-bl"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      # Power supply drivers, some platforms need them for USB
 | 
					 | 
				
			||||||
      "axp20x-ac-power"
 | 
					 | 
				
			||||||
      "axp20x-battery"
 | 
					 | 
				
			||||||
      "pinctrl-axp209"
 | 
					 | 
				
			||||||
      "mp8859"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      # USB drivers
 | 
					 | 
				
			||||||
      "xhci-pci-renesas"
 | 
					 | 
				
			||||||
];
 | 
					 | 
				
			||||||
    initrd.kernelModules = [ ];
 | 
					 | 
				
			||||||
    kernelModules = [ ];
 | 
					 | 
				
			||||||
    extraModulePackages = [ ];
 | 
					 | 
				
			||||||
    loader = {
 | 
					    loader = {
 | 
				
			||||||
      grub.enable = false;
 | 
					      grub.enable = false;
 | 
				
			||||||
      generic-extlinux-compatible.enable= true;
 | 
					      generic-extlinux-compatible.enable= true;
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										14
									
								
								marisa/cachix.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								marisa/cachix.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					# WARN: this file will get overwritten by $ cachix use <name>
 | 
				
			||||||
 | 
					{ pkgs, lib, ... }:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					let
 | 
				
			||||||
 | 
					  folder = ./cachix;
 | 
				
			||||||
 | 
					  toImport = name: value: folder + ("/" + name);
 | 
				
			||||||
 | 
					  filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
 | 
				
			||||||
 | 
					  imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
 | 
				
			||||||
 | 
					in {
 | 
				
			||||||
 | 
					  inherit imports;
 | 
				
			||||||
 | 
					  nix.binaryCaches = ["https://cache.nixos.org/"];
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
							
								
								
									
										12
									
								
								marisa/cachix/rpi4.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								marisa/cachix/rpi4.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  nix = {
 | 
				
			||||||
 | 
					    binaryCaches = [
 | 
				
			||||||
 | 
					      "https://rpi4.cachix.org"
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
 | 
					    binaryCachePublicKeys = [
 | 
				
			||||||
 | 
					      "rpi4.cachix.org-1:fMaYBuIlj/Sa9YTXnXMXoXnVZEoVhnFxOkxseKKlku8="
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
@@ -18,5 +18,5 @@
 | 
				
			|||||||
  swapDevices = [ ];
 | 
					  swapDevices = [ ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
 | 
					  powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
 | 
				
			||||||
  hardware.firmware = with pkgs; [ raspberrypiWirelessFirmware ]; 
 | 
					  hardware.firmware = [ pkgs.raspberrypiWirelessFirmware ];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,8 +2,10 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  networking = {
 | 
					  networking = {
 | 
				
			||||||
    hostName = "Marisa";
 | 
					    hostName = "Marisa";
 | 
				
			||||||
    wireless.enable = false;
 | 
					    wireless = {
 | 
				
			||||||
    wireless.iwd.enable = true;
 | 
					      enable = false;
 | 
				
			||||||
 | 
					      iwd.enable = true;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
    interfaces = {
 | 
					    interfaces = {
 | 
				
			||||||
      wlan0 = {
 | 
					      wlan0 = {
 | 
				
			||||||
        useDHCP = false;
 | 
					        useDHCP = false;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,19 +1,16 @@
 | 
				
			|||||||
{lib, config, pkgs, ...}:
 | 
					{lib, config, pkgs, ...}:
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  environment.systemPackages = with pkgs; [
 | 
					  environment.systemPackages = with pkgs; [
 | 
				
			||||||
    p7zip
 | 
					 | 
				
			||||||
    git
 | 
					    git
 | 
				
			||||||
    gnumake
 | 
					    gnumake
 | 
				
			||||||
    neofetch
 | 
					 | 
				
			||||||
    kbd
 | 
					 | 
				
			||||||
    htop
 | 
					    htop
 | 
				
			||||||
    vim
 | 
					    vim
 | 
				
			||||||
    wget
 | 
					    libraspberrypi
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
  programs = {
 | 
					  programs = {
 | 
				
			||||||
    zsh = {
 | 
					    zsh = {
 | 
				
			||||||
      enable = true;
 | 
					      enable = true;
 | 
				
			||||||
      promptInit = "PROMPT='%F{cyan}%~ %F{blue}>%f '\nRPROMPT='%F{cyan}%n%f@%F{red}%m'";
 | 
					      promptInit = "PROMPT='%B%F{cyan}%~ %F{blue}>%f%b '\nRPROMPT='%B%F{cyan}%n%f@%F{red}%m%b'";
 | 
				
			||||||
      histSize = 12000;
 | 
					      histSize = 12000;
 | 
				
			||||||
      enableCompletion = true;
 | 
					      enableCompletion = true;
 | 
				
			||||||
      syntaxHighlighting.enable = true;
 | 
					      syntaxHighlighting.enable = true;
 | 
				
			||||||
@@ -23,6 +20,7 @@
 | 
				
			|||||||
    gnupg = {
 | 
					    gnupg = {
 | 
				
			||||||
      agent = {
 | 
					      agent = {
 | 
				
			||||||
        enable = true;
 | 
					        enable = true;
 | 
				
			||||||
 | 
					        pinentryFlavor = "curses";
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
@@ -31,6 +29,6 @@
 | 
				
			|||||||
    extraOptions = ''
 | 
					    extraOptions = ''
 | 
				
			||||||
      experimental-features = nix-command ca-references flakes
 | 
					      experimental-features = nix-command ca-references flakes
 | 
				
			||||||
    '';
 | 
					    '';
 | 
				
			||||||
    trustedUsers = [ "root" "ottan" ];
 | 
					    trustedUsers = [ "root" ];
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,9 @@
 | 
				
			|||||||
{config, ...}:
 | 
					{config, ...}:
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  services = {
 | 
					  services = {
 | 
				
			||||||
    sshd.enable = true;
 | 
					    openssh = {
 | 
				
			||||||
 | 
					      enable = true;
 | 
				
			||||||
 | 
					      permitRootLogin = "yes";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,7 +12,7 @@
 | 
				
			|||||||
      enable = true;
 | 
					      enable = true;
 | 
				
			||||||
      extraRules = [
 | 
					      extraRules = [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          users = [ "ottan" ];
 | 
					          users = [ ];
 | 
				
			||||||
          keepEnv = true;
 | 
					          keepEnv = true;
 | 
				
			||||||
          persist = true;
 | 
					          persist = true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@@ -22,10 +22,8 @@
 | 
				
			|||||||
  fonts.fonts = with pkgs; [
 | 
					  fonts.fonts = with pkgs; [
 | 
				
			||||||
    fira-mono
 | 
					    fira-mono
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
  users.users.ottan = {
 | 
					  documentation.enable = false;
 | 
				
			||||||
    isNormalUser = true;
 | 
					  users.extraUsers.root = {
 | 
				
			||||||
    shell = pkgs.zsh;
 | 
					      shell = pkgs.zsh;
 | 
				
			||||||
    home = "/home/ottan";
 | 
					    };
 | 
				
			||||||
    extraGroups = [ "wheel" ];
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user