A real configuration?

This commit is contained in:
Benson Chu 2023-12-04 10:30:54 -06:00
parent 585d2210a2
commit 586b83e6d1
4 changed files with 49 additions and 25 deletions

View file

@ -1,8 +1,11 @@
{ pkgs }: with pkgs; [ { pkgs }: with pkgs; [
gcc
git git
emacs emacs
cmake cmake
gnumake gnumake
libtool libtool
gcc notmuch
mu
] ]

27
flake.lock Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1701539137,
"narHash": "sha256-nVO/5QYpf1GwjvtpXhyxx5M3U/WN0MwBro4Lsk+9mL0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "933d7dc155096e7575d207be6fb7792bc9f34f6d",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-23.11",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

17
flake.nix Normal file
View file

@ -0,0 +1,17 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
};
outputs = { self, nixpkgs }: {
nixosConfigurations.NixFrame = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./hosts/NixFrame/configuration.nix ];
};
# nixosConfigurations.LenoNix = nixpkgs.lib.nixosSystem {
# system = "x86_64-linux";
# modules = [ ./hosts/NixFrame/configuration.nix ];
# };
};
}

View file

@ -29,29 +29,6 @@ in
# Configure console keymap # Configure console keymap
console.keyMap = "dvorak"; console.keyMap = "dvorak";
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.benson = { users.users.benson = {
isNormalUser = true; isNormalUser = true;
@ -60,7 +37,7 @@ in
packages = with pkgs; [ packages = with pkgs; [
firefox firefox
kate kate
# thunderbird steam
]; ];
}; };